title: Add Guild Member category: Guild
addGuildMember
$client->guild->addGuildMember($parameters);
Adds a user to the guild, provided you have a valid oauth2 access token for the user with the guilds.join scope. Fires a Guild Member Add Gateway event. Requires the bot to have the CREATE_INSTANT_INVITE permission.
Name | Type | Required | Default |
---|---|---|---|
guild.id | snowflake | true | null |
user.id | snowflake | true | null |
access_token | string | false | null |
nick | string | false | null |
roles | array | false | null |
mute | bool | false | null |
deaf | bool | false | null |
Returns a 201 Created with the guild member as the body.
Can Return: