Class SocketForumChannel
Represents a forum channel in a guild.
Inheritance
SocketForumChannel
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketForumChannel : SocketGuildChannel, IEntity<ulong>, IForumChannel, IMentionable, INestedChannel, IIntegrationChannel, IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
Properties
|
Improve this Doc
View Source
Category
Gets the parent (category) of this channel in the guild's channel list.
Declaration
public ICategoryChannel Category { get; }
Property Value
|
Improve this Doc
View Source
CategoryId
Declaration
public ulong? CategoryId { get; }
Property Value
|
Improve this Doc
View Source
DefaultAutoArchiveDuration
Gets the default archive duration for a newly created post.
Declaration
public ThreadArchiveDuration DefaultAutoArchiveDuration { get; }
Property Value
|
Improve this Doc
View Source
DefaultLayout
Gets the rule used to display posts in a forum channel.
Declaration
public ForumLayout DefaultLayout { get; }
Property Value
|
Improve this Doc
View Source
DefaultReactionEmoji
Gets the emoji to show in the add reaction button on a thread in a forum channel
Declaration
public IEmote DefaultReactionEmoji { get; }
Property Value
|
Improve this Doc
View Source
DefaultSlowModeInterval
Declaration
public int DefaultSlowModeInterval { get; }
Property Value
|
Improve this Doc
View Source
DefaultSortOrder
Declaration
public ForumSortOrder? DefaultSortOrder { get; }
Property Value
|
Improve this Doc
View Source
IsNsfw
Declaration
public bool IsNsfw { get; }
Property Value
|
Improve this Doc
View Source
Mention
Declaration
public string Mention { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public IReadOnlyCollection<ForumTag> Tags { get; }
Property Value
Type |
Description |
IReadOnlyCollection<ForumTag> |
|
|
Improve this Doc
View Source
ThreadCreationInterval
Declaration
public int ThreadCreationInterval { get; }
Property Value
|
Improve this Doc
View Source
Topic
Declaration
public string Topic { get; }
Property Value
Methods
|
Improve this Doc
View Source
CreateInviteAsync(Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
Declaration
public virtual async Task<IInviteMetadata> CreateInviteAsync(int? maxAge, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
CreateInviteToApplicationAsync(DefaultApplications, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
Declaration
public virtual async Task<IInviteMetadata> CreateInviteToApplicationAsync(DefaultApplications application, int? maxAge, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
CreateInviteToApplicationAsync(UInt64, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
Declaration
public virtual async Task<IInviteMetadata> CreateInviteToApplicationAsync(ulong applicationId, int? maxAge, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
CreateInviteToStreamAsync(IUser, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
Declaration
public virtual Task<IInviteMetadata> CreateInviteToStreamAsync(IUser user, int? maxAge, int? maxUses = null, bool isTemporary = false, bool isUnique = false, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
CreatePostAsync(String, ThreadArchiveDuration, Nullable<Int32>, String, Embed, RequestOptions, AllowedMentions, MessageComponent, ISticker[], Embed[], MessageFlags, ForumTag[])
Declaration
public Task<RestThreadChannel> CreatePostAsync(string title, ThreadArchiveDuration archiveDuration = default(ThreadArchiveDuration), int? slowmode = null, string text = null, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags), ForumTag[] tags = null)
Parameters
Returns
|
Improve this Doc
View Source
CreatePostWithFileAsync(String, FileAttachment, ThreadArchiveDuration, Nullable<Int32>, String, Embed, RequestOptions, AllowedMentions, MessageComponent, ISticker[], Embed[], MessageFlags, ForumTag[])
Declaration
public Task<RestThreadChannel> CreatePostWithFileAsync(string title, FileAttachment attachment, ThreadArchiveDuration archiveDuration = default(ThreadArchiveDuration), int? slowmode = null, string text = null, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags), ForumTag[] tags = null)
Parameters
Returns
|
Improve this Doc
View Source
CreatePostWithFileAsync(String, Stream, String, ThreadArchiveDuration, Nullable<Int32>, String, Embed, RequestOptions, Boolean, AllowedMentions, MessageComponent, ISticker[], Embed[], MessageFlags, ForumTag[])
Declaration
public async Task<RestThreadChannel> CreatePostWithFileAsync(string title, Stream stream, string filename, ThreadArchiveDuration archiveDuration = default(ThreadArchiveDuration), int? slowmode = null, string text = null, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags), ForumTag[] tags = null)
Parameters
Returns
|
Improve this Doc
View Source
CreatePostWithFileAsync(String, String, ThreadArchiveDuration, Nullable<Int32>, String, Embed, RequestOptions, Boolean, AllowedMentions, MessageComponent, ISticker[], Embed[], MessageFlags, ForumTag[])
Declaration
public async Task<RestThreadChannel> CreatePostWithFileAsync(string title, string filePath, ThreadArchiveDuration archiveDuration = default(ThreadArchiveDuration), int? slowmode = null, string text = null, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags), ForumTag[] tags = null)
Parameters
Returns
|
Improve this Doc
View Source
CreatePostWithFilesAsync(String, IEnumerable<FileAttachment>, ThreadArchiveDuration, Nullable<Int32>, String, Embed, RequestOptions, AllowedMentions, MessageComponent, ISticker[], Embed[], MessageFlags, ForumTag[])
Declaration
public Task<RestThreadChannel> CreatePostWithFilesAsync(string title, IEnumerable<FileAttachment> attachments, ThreadArchiveDuration archiveDuration = default(ThreadArchiveDuration), int? slowmode = null, string text = null, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags), ForumTag[] tags = null)
Parameters
Returns
|
Improve this Doc
View Source
CreateWebhookAsync(String, Stream, RequestOptions)
Creates a webhook in this channel.
Declaration
public Task<RestWebhook> CreateWebhookAsync(string name, Stream avatar = null, RequestOptions options = null)
Parameters
Type |
Name |
Description |
String |
name |
The name of the webhook.
|
Stream |
avatar |
The avatar of the webhook.
|
RequestOptions |
options |
The options to be used when sending the request.
|
Returns
Type |
Description |
Task<RestWebhook> |
A task that represents the asynchronous creation operation. The task result contains the newly created
webhook.
|
|
Improve this Doc
View Source
GetActiveThreadsAsync(RequestOptions)
Gets a collection of active threads within this channel.
Declaration
public Task<IReadOnlyCollection<RestThreadChannel>> GetActiveThreadsAsync(RequestOptions options = null)
Parameters
Type |
Name |
Description |
RequestOptions |
options |
The options to be used when sending the request.
|
Returns
Type |
Description |
Task<IReadOnlyCollection<RestThreadChannel>> |
A task that represents an asynchronous get operation for retrieving the threads. The task result contains
a collection of active threads.
|
|
Improve this Doc
View Source
GetInvitesAsync(RequestOptions)
Declaration
public virtual async Task<IReadOnlyCollection<IInviteMetadata>> GetInvitesAsync(RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
GetJoinedPrivateArchivedThreadsAsync(Nullable<Int32>, Nullable<DateTimeOffset>, RequestOptions)
Declaration
public Task<IReadOnlyCollection<RestThreadChannel>> GetJoinedPrivateArchivedThreadsAsync(int? limit = null, DateTimeOffset? before = null, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
GetPrivateArchivedThreadsAsync(Nullable<Int32>, Nullable<DateTimeOffset>, RequestOptions)
Declaration
public Task<IReadOnlyCollection<RestThreadChannel>> GetPrivateArchivedThreadsAsync(int? limit = null, DateTimeOffset? before = null, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
GetPublicArchivedThreadsAsync(Nullable<Int32>, Nullable<DateTimeOffset>, RequestOptions)
Declaration
public Task<IReadOnlyCollection<RestThreadChannel>> GetPublicArchivedThreadsAsync(int? limit = null, DateTimeOffset? before = null, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
GetWebhookAsync(UInt64, RequestOptions)
Creates a webhook in this channel.
Declaration
public Task<RestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
Parameters
Returns
Type |
Description |
Task<RestWebhook> |
A task that represents the asynchronous creation operation. The task result contains the newly created
webhook.
|
|
Improve this Doc
View Source
GetWebhooksAsync(RequestOptions)
Creates a webhook in this channel.
Declaration
public Task<IReadOnlyCollection<RestWebhook>> GetWebhooksAsync(RequestOptions options = null)
Parameters
Returns
Type |
Description |
Task<IReadOnlyCollection<RestWebhook>> |
A task that represents the asynchronous creation operation. The task result contains the newly created
webhook.
|
|
Improve this Doc
View Source
ModifyAsync(Action<ForumChannelProperties>, RequestOptions)
Declaration
public virtual Task ModifyAsync(Action<ForumChannelProperties> func, RequestOptions options = null)
Parameters
Returns
|
Improve this Doc
View Source
SyncPermissionsAsync(RequestOptions)
Declaration
public virtual Task SyncPermissionsAsync(RequestOptions options = null)
Parameters
Returns
Implements