Search Results for

    Show / Hide Table of Contents

    Class SocketNewsChannel

    Represents a WebSocket-based news channel in a guild that has the same properties as a SocketTextChannel.

    Inheritance
    Object
    SocketEntity<UInt64>
    SocketChannel
    SocketGuildChannel
    SocketTextChannel
    SocketNewsChannel
    Implements
    IEntity<UInt64>
    ISocketMessageChannel
    INewsChannel
    ITextChannel
    IMessageChannel
    IMentionable
    INestedChannel
    IIntegrationChannel
    IGuildChannel
    IChannel
    ISnowflakeEntity
    IEntity<UInt64>
    IDeletable
    Inherited Members
    SocketTextChannel.Topic
    SocketTextChannel.CategoryId
    SocketTextChannel.DefaultSlowModeInterval
    SocketTextChannel.Category
    SocketTextChannel.SyncPermissionsAsync(RequestOptions)
    SocketTextChannel.IsNsfw
    SocketTextChannel.DefaultArchiveDuration
    SocketTextChannel.Mention
    SocketTextChannel.CachedMessages
    SocketTextChannel.Users
    SocketTextChannel.Threads
    SocketTextChannel.ModifyAsync(Action<TextChannelProperties>, RequestOptions)
    SocketTextChannel.CreateThreadAsync(String, ThreadType, ThreadArchiveDuration, IMessage, Nullable<Boolean>, Nullable<Int32>, RequestOptions)
    SocketTextChannel.GetActiveThreadsAsync(RequestOptions)
    SocketTextChannel.GetCachedMessage(UInt64)
    SocketTextChannel.GetMessageAsync(UInt64, RequestOptions)
    SocketTextChannel.GetMessagesAsync(Int32, RequestOptions)
    SocketTextChannel.GetMessagesAsync(UInt64, Direction, Int32, RequestOptions)
    SocketTextChannel.GetMessagesAsync(IMessage, Direction, Int32, RequestOptions)
    SocketTextChannel.GetCachedMessages(Int32)
    SocketTextChannel.GetCachedMessages(UInt64, Direction, Int32)
    SocketTextChannel.GetCachedMessages(IMessage, Direction, Int32)
    SocketTextChannel.GetPinnedMessagesAsync(RequestOptions)
    SocketTextChannel.SendMessageAsync(String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    SocketTextChannel.SendFileAsync(String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    SocketTextChannel.SendFileAsync(Stream, String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    SocketTextChannel.SendFileAsync(FileAttachment, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    SocketTextChannel.SendFilesAsync(IEnumerable<FileAttachment>, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    SocketTextChannel.DeleteMessagesAsync(IEnumerable<IMessage>, RequestOptions)
    SocketTextChannel.DeleteMessagesAsync(IEnumerable<UInt64>, RequestOptions)
    SocketTextChannel.ModifyMessageAsync(UInt64, Action<MessageProperties>, RequestOptions)
    SocketTextChannel.DeleteMessageAsync(UInt64, RequestOptions)
    SocketTextChannel.DeleteMessageAsync(IMessage, RequestOptions)
    SocketTextChannel.TriggerTypingAsync(RequestOptions)
    SocketTextChannel.EnterTypingState(RequestOptions)
    SocketTextChannel.GetUser(UInt64)
    SocketTextChannel.CreateWebhookAsync(String, Stream, RequestOptions)
    SocketTextChannel.GetWebhookAsync(UInt64, RequestOptions)
    SocketTextChannel.GetWebhooksAsync(RequestOptions)
    SocketTextChannel.CreateInviteAsync(Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    SocketTextChannel.CreateInviteToApplicationAsync(UInt64, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    SocketTextChannel.CreateInviteToApplicationAsync(DefaultApplications, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    SocketTextChannel.CreateInviteToStreamAsync(IUser, Nullable<Int32>, Nullable<Int32>, Boolean, Boolean, RequestOptions)
    SocketTextChannel.GetInvitesAsync(RequestOptions)
    SocketGuildChannel.Guild
    SocketGuildChannel.Name
    SocketGuildChannel.Position
    SocketGuildChannel.Flags
    SocketGuildChannel.PermissionOverwrites
    SocketGuildChannel.ModifyAsync(Action<GuildChannelProperties>, RequestOptions)
    SocketGuildChannel.DeleteAsync(RequestOptions)
    SocketGuildChannel.GetPermissionOverwrite(IUser)
    SocketGuildChannel.GetPermissionOverwrite(IRole)
    SocketGuildChannel.AddPermissionOverwriteAsync(IUser, OverwritePermissions, RequestOptions)
    SocketGuildChannel.AddPermissionOverwriteAsync(IRole, OverwritePermissions, RequestOptions)
    SocketGuildChannel.RemovePermissionOverwriteAsync(IUser, RequestOptions)
    SocketGuildChannel.RemovePermissionOverwriteAsync(IRole, RequestOptions)
    SocketGuildChannel.ToString()
    SocketGuildChannel.IGuildChannel.Guild
    SocketChannel.CreatedAt
    SocketEntity<UInt64>.Id
    Namespace: Discord.WebSocket
    Assembly: Discord.Net.WebSocket.dll
    Syntax
    public class SocketNewsChannel : SocketTextChannel, IEntity<ulong>, ISocketMessageChannel, INewsChannel, ITextChannel, IMessageChannel, IMentionable, INestedChannel, IIntegrationChannel, IGuildChannel, IChannel, ISnowflakeEntity, IEntity<ulong>, IDeletable
    Remarks
    warning

    The SlowModeInterval property is not supported for news channels.

    Properties

    | Improve this Doc View Source

    SlowModeInterval

    Declaration
    public override int SlowModeInterval { get; }
    Property Value
    Type Description
    Int32
    Overrides
    SocketTextChannel.SlowModeInterval
    Remarks
    important

    This property is not supported by this type. Attempting to use this property will result in a .

    Methods

    | Improve this Doc View Source

    FollowAnnouncementChannelAsync(ITextChannel, RequestOptions)

    Follow this channel to send messages to a target channel.

    Declaration
    public Task<ulong> FollowAnnouncementChannelAsync(ITextChannel channel, RequestOptions options = null)
    Parameters
    Type Name Description
    ITextChannel channel
    RequestOptions options
    Returns
    Type Description
    Task<UInt64>

    The Id of the created webhook.

    | Improve this Doc View Source

    FollowAnnouncementChannelAsync(UInt64, RequestOptions)

    Declaration
    public Task<ulong> FollowAnnouncementChannelAsync(ulong channelId, RequestOptions options = null)
    Parameters
    Type Name Description
    UInt64 channelId
    RequestOptions options
    Returns
    Type Description
    Task<UInt64>

    Implements

    IEntity<TId>
    ISocketMessageChannel
    INewsChannel
    ITextChannel
    IMessageChannel
    IMentionable
    INestedChannel
    IIntegrationChannel
    IGuildChannel
    IChannel
    ISnowflakeEntity
    IEntity<TId>
    IDeletable

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0