Table of Contents

Class ForumGuildChannel

Namespace
NetCord
Assembly
NetCord.dll
public class ForumGuildChannel : Channel, IEquatable<Entity>, IJsonModel<JsonChannel>, IInteractionChannel, IGuildChannel, INamedChannel, IEntity, ISpanFormattable, IFormattable
Inheritance
ForumGuildChannel
Implements
Derived
Inherited Members

Constructors

ForumGuildChannel(JsonChannel, ulong, RestClient)

public ForumGuildChannel(JsonChannel jsonModel, ulong guildId, RestClient client)

Parameters

jsonModel JsonChannel
guildId ulong
client RestClient

Properties

AvailableTags

public IReadOnlyList<ForumTag> AvailableTags { get; }

Property Value

IReadOnlyList<ForumTag>

DefaultForumLayout

public ForumLayoutType DefaultForumLayout { get; }

Property Value

ForumLayoutType

DefaultReactionEmoji

public ForumGuildChannelDefaultReaction? DefaultReactionEmoji { get; }

Property Value

ForumGuildChannelDefaultReaction

DefaultSortOrder

public SortOrderType? DefaultSortOrder { get; }

Property Value

SortOrderType?

DefaultThreadSlowmode

public int DefaultThreadSlowmode { get; }

Property Value

int

GuildId

public ulong GuildId { get; }

Property Value

ulong

LastMessageId

public ulong? LastMessageId { get; }

Property Value

ulong?

LastPin

public DateTimeOffset? LastPin { get; }

Property Value

DateTimeOffset?

Name

public string Name { get; }

Property Value

string

Nsfw

public bool Nsfw { get; }

Property Value

bool

ParentId

public ulong? ParentId { get; }

Property Value

ulong?

PermissionOverwrites

public IReadOnlyDictionary<ulong, PermissionOverwrite> PermissionOverwrites { get; }

Property Value

IReadOnlyDictionary<ulong, PermissionOverwrite>

Position

public int? Position { get; }

Property Value

int?

Slowmode

public int Slowmode { get; }

Property Value

int

Topic

public string? Topic { get; }

Property Value

string

Methods

CreateForumGuildThreadAsync(ForumGuildThreadProperties, RestRequestProperties?, CancellationToken)

public Task<ForumGuildThread> CreateForumGuildThreadAsync(ForumGuildThreadProperties threadProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

threadProperties ForumGuildThreadProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ForumGuildThread>

CreateInviteAsync(InviteProperties?, RestRequestProperties?, CancellationToken)

public Task<RestInvite> CreateInviteAsync(InviteProperties? inviteProperties = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

inviteProperties InviteProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<RestInvite>

DeleteAsync(RestRequestProperties?, CancellationToken)

public Task<ForumGuildChannel> DeleteAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ForumGuildChannel>

DeletePermissionAsync(ulong, RestRequestProperties?, CancellationToken)

public Task DeletePermissionAsync(ulong overwriteId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

overwriteId ulong
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task

GetAsync(RestRequestProperties?, CancellationToken)

public Task<ForumGuildChannel> GetAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ForumGuildChannel>

GetInvitesAsync(RestRequestProperties?, CancellationToken)

public Task<IEnumerable<RestInvite>> GetInvitesAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<IEnumerable<RestInvite>>

ModifyAsync(Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)

public Task<ForumGuildChannel> ModifyAsync(Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

action Action<GuildChannelOptions>
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task<ForumGuildChannel>

ModifyPermissionsAsync(PermissionOverwriteProperties, RestRequestProperties?, CancellationToken)

public Task ModifyPermissionsAsync(PermissionOverwriteProperties permissionOverwrite, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)

Parameters

permissionOverwrite PermissionOverwriteProperties
properties RestRequestProperties
cancellationToken CancellationToken

Returns

Task