title: Create Guild Ban category: Guild
createGuildBan
$client->guild->createGuildBan($parameters);
Create a guild ban, and optionally delete previous messages sent by the banned user. Requires the 'BAN_MEMBERS' permission. Fires a Guild Ban Add Gateway event.
Name | Type | Required | Default |
---|---|---|---|
guild.id | snowflake | true | null |
user.id | snowflake | true | null |
delete-message-days | integer | false | null |
reason | string | false | null |
Returns a 204 empty response on success.