Discore
Show / Hide Table of Contents

Method GetGuildBans

| Improve this Doc View Source

GetGuildBans(Snowflake)

Gets a list of all users that are banned from the specified guild.

Requires BanMembers.

Declaration
public Task<IReadOnlyList<DiscordGuildBan>> GetGuildBans(Snowflake guildId)
Parameters
Type Name Description
Snowflake guildId
Returns
Type Description
Task<IReadOnlyList<DiscordGuildBan>>
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

GetGuildBans(DiscordGuild)

Gets a list of all users that are banned from the specified guild.

Requires BanMembers.

Declaration
public Task<IReadOnlyList<DiscordGuildBan>> GetGuildBans(DiscordGuild guild)
Parameters
Type Name Description
DiscordGuild guild
Returns
Type Description
Task<IReadOnlyList<DiscordGuildBan>>
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX