Get Guild Ban#
-
ORCAcode discord_get_guild_ban(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, struct discord_ban *ret)#
Fetch banned user from given guild.
Note
Requires the BAN_MEMBERS permission
- Parameters:
client – the client created with discord_init()
guild_id – the guild to return the ban from
user_id – the user that is banned
ret – if successful, a discord_ban that should be free’d with
discord_ban_cleanup()
- Returns:
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary