Method CreateForumPostTagAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
CreateForumPostTagAsync(string, DiscordEmoji, bool, string)
Creates a forum channel tag.
public Task<DiscordChannel> CreateForumPostTagAsync(string name, DiscordEmoji emoji = null, bool moderated = false, string reason = null)
Parameters
name
stringThe name of the tag.
emoji
DiscordEmojiThe emoji of the tag. Has to be either a DiscordGuildEmoji of the current guild or a DiscordUnicodeEmoji.
moderated
boolWhether only moderators should be able to apply this tag.
reason
stringThe audit log reason.
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.