Method GetGuildBanAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.Rest.dll
GetGuildBanAsync(ulong, ulong)
Gets the ban of the specified user. Requires Ban Members permission.
public Task<DiscordBan> GetGuildBanAsync(ulong guildId, ulong userId)
Parameters
guildId
ulongThe ID of the guild to get the ban from.
userId
ulongThe ID of the user to get the ban for.
Returns
- Task<DiscordBan>
A guild ban object.