Discore
Show / Hide Table of Contents

Method DeleteInvite

| Improve this Doc View Source

DeleteInvite(string)

Deletes an invite to a channel.

Requires ManageChannels.

Declaration
public Task<DiscordInvite> DeleteInvite(string inviteCode)
Parameters
Type Name Description
string inviteCode
Returns
Type Description
Task<DiscordInvite>
Exceptions
Type Condition
ArgumentException

Thrown if the invite code is empty or only contains whitespace characters.

ArgumentNullException
DiscordHttpApiException
| Improve this Doc View Source

DeleteInvite(DiscordInvite)

Deletes an invite to a channel.

Requires ManageChannels.

Declaration
public Task<DiscordInvite> DeleteInvite(DiscordInvite invite)
Parameters
Type Name Description
DiscordInvite invite
Returns
Type Description
Task<DiscordInvite>
Exceptions
Type Condition
ArgumentException

Thrown if the invite code is empty or only contains whitespace characters.

ArgumentNullException
DiscordHttpApiException
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX