Create Guild Ban¶
-
ORCAcode discord_create_guild_ban(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, struct discord_create_guild_ban_params *params)¶
Bans user from a given guild.
Note
Requires the BAN_MEMBERS permission
Note
Fires a
Guild Ban Add
event- Parameters
client – the client created with discord_init()
guild_id – guild the user belongs to
user_id – the user to be banned
params – request parameters
- Returns
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
Warning
doxygenstruct: Cannot find class “discord_create_guild_ban_params” in doxygen xml output for project “Orca” from directory: ../xml