Add Guild Member¶
-
ORCAcode discord_add_guild_member(struct discord *client, u64_snowflake_t guild_id, u64_snowflake_t user_id, struct discord_add_guild_member_params *params, struct discord_guild_member *ret)¶
Adds a user to the guild.
Note
Requires valid oauth2 access token for the user with
guilds.join
scopeNote
Fires a
Guild Member Add
eventNote
The bot must be a member of the guild with CREATE_INSTANT_INVITE permission
- Parameters
client – the client created with discord_init()
guild_id – guild to add the member to
user_id – the user to be added
request – parameters
ret – if successful, a discord_guild_member that should be free’d with
discord_guild_member_cleanup()
- Returns
ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary
Warning
doxygenstruct: Cannot find class “discord_add_guild_member_params” in doxygen xml output for project “Orca” from directory: ../xml