Method DeleteInvite
| Improve this Doc View SourceDeleteInvite(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 |
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 |