Get Guild Bans#
-
ORCAcode discord_get_guild_bans(struct discord *client, u64_snowflake_t guild_id, struct discord_ban ***ret)#
Fetch banned users for given guild.
Note
Requires the BAN_MEMBERS permission
- Parameters:
client – the client created with discord_init()
guild_id – the guild to get the list from
ret – if successful, a null-terminated list of discord_ban, that should be free’d with
discord_ban_list_free()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary