Skip to content

Commit 214f0ee

Browse files
maukkiscolinloretzmarkmandel
authored
Add clarification for the permission needed for GUILD_BAN_ADD and GUILD_BAN_REMOVE. (#7948)
* add the needed permissions to receive guild ban gateway events * Apply suggestions from code review Co-authored-by: Mark Mandel <mark@compoundtheory.com> --------- Co-authored-by: Colin Loretz <colin.loretz@discordapp.com> Co-authored-by: Mark Mandel <mark@compoundtheory.com>
1 parent a6a8a25 commit 214f0ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

developers/events/gateway-events.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ Sent when a guild audit log entry is created. The inner payload is an [Audit Log
713713

714714
#### Guild Ban Add
715715

716-
Sent when a user is banned from a guild.
716+
Sent when a user is banned from a guild. This event is only sent to bots with the `BAN_MEMBERS` or `VIEW_AUDIT_LOG` permission.
717717

718718
<ManualAnchor id="guild-ban-add-guild-ban-add-event-fields" />
719719
###### Guild Ban Add Event Fields
@@ -725,7 +725,7 @@ Sent when a user is banned from a guild.
725725

726726
#### Guild Ban Remove
727727

728-
Sent when a user is unbanned from a guild.
728+
Sent when a user is unbanned from a guild. This event is only sent to bots with the `BAN_MEMBERS` or `VIEW_AUDIT_LOG` permission.
729729

730730
<ManualAnchor id="guild-ban-remove-guild-ban-remove-event-fields" />
731731
###### Guild Ban Remove Event Fields

0 commit comments

Comments
 (0)