Method GetGuildBansAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
GetGuildBansAsync(ulong, int?, ulong?, ulong?)
Gets guild bans.
public Task<IReadOnlyList<DiscordBan>> GetGuildBansAsync(ulong guildId, int? limit = null, ulong? before = null, ulong? after = null)
Parameters
guildId
ulongThe ID of the guild to get the bans from.
limit
int?The number of users to return (up to maximum 1000, default 1000).
before
ulong?Consider only users before the given user ID.
after
ulong?Consider only users after the given user ID.
Returns
- Task<IReadOnlyList<DiscordBan>>
A collection of the guild's bans.