Discore
Show / Hide Table of Contents

Method RemoveGuildBan

| Improve this Doc View Source

RemoveGuildBan(Snowflake, Snowflake)

Removes a user ban from the specified guild.

Requires BanMembers.

Declaration
public Task RemoveGuildBan(Snowflake guildId, Snowflake userId)
Parameters
Type Name Description
Snowflake guildId
Snowflake userId
Returns
Type Description
Task
Exceptions
Type Condition
DiscordHttpApiException
| Improve this Doc View Source

RemoveGuildBan(DiscordGuild, DiscordUser)

Removes a user ban from the specified guild.

Requires BanMembers.

Declaration
public Task RemoveGuildBan(DiscordGuild guild, DiscordUser user)
Parameters
Type Name Description
DiscordGuild guild
DiscordUser user
Returns
Type Description
Task
Exceptions
Type Condition
ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX