Table of Contents

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 string

The name of the tag.

emoji DiscordEmoji

The emoji of the tag. Has to be either a DiscordGuildEmoji of the current guild or a DiscordUnicodeEmoji.

moderated bool

Whether only moderators should be able to apply this tag.

reason string

The audit log reason.

Returns

Task<DiscordChannel>

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.