List guild bans. Requires ban_members permission. Returns all banned users for the guild including ban reasons and expiry times.
curl --request GET \
--url https://api.fluxer.app/v1/guilds/{guild_id}/bans \
--header 'Authorization: <api-key>'[
{
"user": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"global_name": "<string>",
"avatar": "<string>",
"avatar_color": 1073741823,
"flags": 1073741823,
"bot": true,
"system": true
},
"moderator_id": "<string>",
"banned_at": "2023-11-07T05:31:56Z",
"reason": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
]Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the guild
Success
Show child attributes
The ID of the moderator who issued the ban
ISO8601 timestamp of when the ban was issued
The reason for the ban
ISO8601 timestamp of when the ban expires (null if permanent)
curl --request GET \
--url https://api.fluxer.app/v1/guilds/{guild_id}/bans \
--header 'Authorization: <api-key>'[
{
"user": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"global_name": "<string>",
"avatar": "<string>",
"avatar_color": 1073741823,
"flags": 1073741823,
"bot": true,
"system": true
},
"moderator_id": "<string>",
"banned_at": "2023-11-07T05:31:56Z",
"reason": "<string>",
"expires_at": "2023-11-07T05:31:56Z"
}
]