Guilds

List guild bans

List guild bans. Requires ban_members permission. Returns all banned users for the guild including ban reasons and expiry times.

get/guilds/{guild_id}/bans

Path parameters

guild_idstring snowflake required

The ID of the guild

Response

Success

reasonstring nullable

The reason for the ban

moderator_idstring required

The ID of the moderator who issued the ban

banned_atstring date-time required

ISO8601 timestamp of when the ban was issued

expires_atstring date-time nullable

ISO8601 timestamp of when the ban expires (null if permanent)

Changes

No recorded changes to this endpoint across all 1 revision of this API.