Method DeleteForumPostTag
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DeleteForumPostTag(ulong, string, CancellationToken)
Deletes a forum channel tag.
public Task<DiscordChannel> DeleteForumPostTag(ulong id, string reason = null, CancellationToken cancellationToken = default)
Parameters
idulongThe id of the tag to delete.
reasonstringThe audit log reason.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageChannels permission.
- NotFoundException
Thrown when the tag does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.