Search Results for

    Show / Hide Table of Contents

    Class SocketVoiceChannel

    Represents a WebSocket-based voice channel in a guild.

    Inheritance
    Object
    SocketEntity<UInt64>
    SocketChannel
    SocketGuildChannel
    SocketTextChannel
    SocketVoiceChannel
    SocketStageChannel
    Implements
    IEntity<UInt64>
    ITextChannel
    ISocketMessageChannel
    IVoiceChannel
    IMessageChannel
    INestedChannel
    IGuildChannel
    IDeletable
    IMentionable
    ISocketAudioChannel
    IAudioChannel
    IChannel
    ISnowflakeEntity
    IEntity<UInt64>
    Inherited Members
    SocketTextChannel.Topic
    SocketTextChannel.SlowModeInterval
    SocketTextChannel.CategoryId
    SocketTextChannel.Category
    SocketTextChannel.SyncPermissionsAsync(RequestOptions)
    SocketTextChannel.IsNsfw
    SocketTextChannel.DefaultArchiveDuration
    SocketTextChannel.Mention
    SocketTextChannel.CachedMessages
    SocketTextChannel.Users
    SocketTextChannel.Threads
    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.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 SocketVoiceChannel : SocketTextChannel, IEntity<ulong>, ITextChannel, ISocketMessageChannel, IVoiceChannel, IMessageChannel, INestedChannel, IGuildChannel, IDeletable, IMentionable, ISocketAudioChannel, IAudioChannel, IChannel, ISnowflakeEntity, IEntity<ulong>

    Properties

    | Improve this Doc View Source

    Bitrate

    Declaration
    public int Bitrate { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    ConnectedUsers

    Gets a collection of users that are currently connected to this voice channel.

    Declaration
    public IReadOnlyCollection<SocketGuildUser> ConnectedUsers { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SocketGuildUser>

    A read-only collection of users that are currently connected to this voice channel.

    | Improve this Doc View Source

    IsTextInVoice

    Gets whether or not the guild has Text-In-Voice enabled and the voice channel is a TiV channel.

    Declaration
    public virtual bool IsTextInVoice { get; }
    Property Value
    Type Description
    Boolean
    Remarks

    Discord currently doesn't have a way to disable Text-In-Voice yet so this field is always true on SocketVoiceChannels and false on SocketStageChannels.

    | Improve this Doc View Source

    RTCRegion

    Declaration
    public string RTCRegion { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    UserLimit

    Declaration
    public int? UserLimit { get; }
    Property Value
    Type Description
    Nullable<Int32>

    Methods

    | Improve this Doc View Source

    ConnectAsync(Boolean, Boolean, Boolean)

    Declaration
    public async Task<IAudioClient> ConnectAsync(bool selfDeaf = false, bool selfMute = false, bool external = false)
    Parameters
    Type Name Description
    Boolean selfDeaf
    Boolean selfMute
    Boolean external
    Returns
    Type Description
    Task<IAudioClient>
    | Improve this Doc View Source

    CreateThreadAsync(String, ThreadType, ThreadArchiveDuration, IMessage, Nullable<Boolean>, Nullable<Int32>, RequestOptions)

    Creates a thread within this ITextChannel.

    Declaration
    public override Task<SocketThreadChannel> CreateThreadAsync(string name, ThreadType type = default(ThreadType), ThreadArchiveDuration autoArchiveDuration = default(ThreadArchiveDuration), IMessage message = null, bool? invitable = null, int? slowmode = null, RequestOptions options = null)
    Parameters
    Type Name Description
    String name

    The name of the thread.

    ThreadType type

    The type of the thread.

    Note: This parameter is not used if the message parameter is not specified.

    ThreadArchiveDuration autoArchiveDuration

    The duration on which this thread archives after.

    Note: Options OneWeek and ThreeDays are only available for guilds that are boosted. You can check in the Features to see if the guild has the THREE_DAY_THREAD_ARCHIVE and SEVEN_DAY_THREAD_ARCHIVE.

    IMessage message

    The message which to start the thread from.

    Nullable<Boolean> invitable
    Nullable<Int32> slowmode
    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task<SocketThreadChannel>

    A task that represents the asynchronous create operation. The task result contains a IThreadChannel

    Overrides
    SocketTextChannel.CreateThreadAsync(String, ThreadType, ThreadArchiveDuration, IMessage, Nullable<Boolean>, Nullable<Int32>, RequestOptions)
    Remarks

    When message is null the thread type will be based off of the channel its created in. When called on a ITextChannel, it creates a PublicThread. When called on a INewsChannel, it creates a NewsThread. The id of the created thread will be the same as the id of the message, and as such a message can only have a single thread created from it.

    | Improve this Doc View Source

    CreateWebhookAsync(String, Stream, RequestOptions)

    Creates a webhook in this text channel.

    Declaration
    public override 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.

    Overrides
    SocketTextChannel.CreateWebhookAsync(String, Stream, RequestOptions)
    | Improve this Doc View Source

    DeleteMessageAsync(IMessage, RequestOptions)

    Declaration
    public override Task DeleteMessageAsync(IMessage message, RequestOptions options = null)
    Parameters
    Type Name Description
    IMessage message
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    SocketTextChannel.DeleteMessageAsync(IMessage, RequestOptions)
    | Improve this Doc View Source

    DeleteMessageAsync(UInt64, RequestOptions)

    Declaration
    public override Task DeleteMessageAsync(ulong messageId, RequestOptions options = null)
    Parameters
    Type Name Description
    UInt64 messageId
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    SocketTextChannel.DeleteMessageAsync(UInt64, RequestOptions)
    | Improve this Doc View Source

    DeleteMessagesAsync(IEnumerable<IMessage>, RequestOptions)

    Declaration
    public override Task DeleteMessagesAsync(IEnumerable<IMessage> messages, RequestOptions options = null)
    Parameters
    Type Name Description
    IEnumerable<IMessage> messages
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    SocketTextChannel.DeleteMessagesAsync(IEnumerable<IMessage>, RequestOptions)
    | Improve this Doc View Source

    DeleteMessagesAsync(IEnumerable<UInt64>, RequestOptions)

    Declaration
    public override Task DeleteMessagesAsync(IEnumerable<ulong> messageIds, RequestOptions options = null)
    Parameters
    Type Name Description
    IEnumerable<UInt64> messageIds
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    SocketTextChannel.DeleteMessagesAsync(IEnumerable<UInt64>, RequestOptions)
    | Improve this Doc View Source

    DisconnectAsync()

    Declaration
    public async Task DisconnectAsync()
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    EnterTypingState(RequestOptions)

    Declaration
    public override IDisposable EnterTypingState(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    IDisposable
    Overrides
    SocketTextChannel.EnterTypingState(RequestOptions)
    | Improve this Doc View Source

    GetCachedMessage(UInt64)

    Gets a cached message from this channel.

    Declaration
    public override SocketMessage GetCachedMessage(ulong id)
    Parameters
    Type Name Description
    UInt64 id

    The snowflake identifier of the message.

    Returns
    Type Description
    SocketMessage

    A WebSocket-based message object; null if it does not exist in the cache or if caching is not enabled.

    Overrides
    SocketTextChannel.GetCachedMessage(UInt64)
    Remarks

    warning

    This method requires the use of cache, which is not enabled by default; if caching is not enabled, this method will always return null. Please refer to MessageCacheSize for more details.

    This method retrieves the message from the local WebSocket cache and does not send any additional request to Discord. This message may be a message that has been deleted.

    | Improve this Doc View Source

    GetCachedMessages(IMessage, Direction, Int32)

    Gets the last N cached messages starting from a certain message in this message channel.

    Declaration
    public override IReadOnlyCollection<SocketMessage> GetCachedMessages(IMessage fromMessage, Direction dir, int limit = 100)
    Parameters
    Type Name Description
    IMessage fromMessage

    The message to start the fetching from.

    Direction dir

    The direction of which the message should be gotten from.

    Int32 limit

    The number of messages to get.

    Returns
    Type Description
    IReadOnlyCollection<SocketMessage>

    A read-only collection of WebSocket-based messages.

    Overrides
    SocketTextChannel.GetCachedMessages(IMessage, Direction, Int32)
    Remarks

    warning

    This method requires the use of cache, which is not enabled by default; if caching is not enabled, this method will always return an empty collection. Please refer to MessageCacheSize for more details.

    This method retrieves the message(s) from the local WebSocket cache and does not send any additional request to Discord. This read-only collection may include messages that have been deleted. The maximum number of messages that can be retrieved from this method depends on the MessageCacheSize set.

    | Improve this Doc View Source

    GetCachedMessages(Int32)

    Gets the last N cached messages from this message channel.

    Declaration
    public override IReadOnlyCollection<SocketMessage> GetCachedMessages(int limit = 100)
    Parameters
    Type Name Description
    Int32 limit

    The number of messages to get.

    Returns
    Type Description
    IReadOnlyCollection<SocketMessage>

    A read-only collection of WebSocket-based messages.

    Overrides
    SocketTextChannel.GetCachedMessages(Int32)
    Remarks

    warning

    This method requires the use of cache, which is not enabled by default; if caching is not enabled, this method will always return an empty collection. Please refer to MessageCacheSize for more details.

    This method retrieves the message(s) from the local WebSocket cache and does not send any additional request to Discord. This read-only collection may include messages that have been deleted. The maximum number of messages that can be retrieved from this method depends on the MessageCacheSize set.

    | Improve this Doc View Source

    GetCachedMessages(UInt64, Direction, Int32)

    Gets the last N cached messages starting from a certain message in this message channel.

    Declaration
    public override IReadOnlyCollection<SocketMessage> GetCachedMessages(ulong fromMessageId, Direction dir, int limit = 100)
    Parameters
    Type Name Description
    UInt64 fromMessageId

    The message ID to start the fetching from.

    Direction dir

    The direction of which the message should be gotten from.

    Int32 limit

    The number of messages to get.

    Returns
    Type Description
    IReadOnlyCollection<SocketMessage>

    A read-only collection of WebSocket-based messages.

    Overrides
    SocketTextChannel.GetCachedMessages(UInt64, Direction, Int32)
    Remarks

    warning

    This method requires the use of cache, which is not enabled by default; if caching is not enabled, this method will always return an empty collection. Please refer to MessageCacheSize for more details.

    This method retrieves the message(s) from the local WebSocket cache and does not send any additional request to Discord. This read-only collection may include messages that have been deleted. The maximum number of messages that can be retrieved from this method depends on the MessageCacheSize set.

    | Improve this Doc View Source

    GetMessageAsync(UInt64, RequestOptions)

    Gets a message from this message channel.

    Declaration
    public override Task<IMessage> GetMessageAsync(ulong id, RequestOptions options = null)
    Parameters
    Type Name Description
    UInt64 id

    The snowflake identifier of the message.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task<IMessage>

    A task that represents an asynchronous get operation for retrieving the message. The task result contains the retrieved message; null if no message is found with the specified identifier.

    Overrides
    SocketTextChannel.GetMessageAsync(UInt64, RequestOptions)
    Remarks

    This method follows the same behavior as described in GetMessageAsync(UInt64, CacheMode, RequestOptions). Please visit its documentation for more details on this method.

    | Improve this Doc View Source

    GetMessagesAsync(IMessage, Direction, Int32, RequestOptions)

    Gets a collection of messages in this channel.

    Declaration
    public override IAsyncEnumerable<IReadOnlyCollection<IMessage>> GetMessagesAsync(IMessage fromMessage, Direction dir, int limit = 100, RequestOptions options = null)
    Parameters
    Type Name Description
    IMessage fromMessage

    The starting message to get the messages from.

    Direction dir

    The direction of the messages to be gotten from.

    Int32 limit

    The numbers of message to be gotten from.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    IAsyncEnumerable<IReadOnlyCollection<IMessage>>

    Paged collection of messages.

    Overrides
    SocketTextChannel.GetMessagesAsync(IMessage, Direction, Int32, RequestOptions)
    Remarks

    This method follows the same behavior as described in . Please visit its documentation for more details on this method.

    | Improve this Doc View Source

    GetMessagesAsync(Int32, RequestOptions)

    Gets the last N messages from this message channel.

    Declaration
    public override IAsyncEnumerable<IReadOnlyCollection<IMessage>> GetMessagesAsync(int limit = 100, RequestOptions options = null)
    Parameters
    Type Name Description
    Int32 limit

    The numbers of message to be gotten from.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    IAsyncEnumerable<IReadOnlyCollection<IMessage>>

    Paged collection of messages.

    Overrides
    SocketTextChannel.GetMessagesAsync(Int32, RequestOptions)
    Remarks

    This method follows the same behavior as described in . Please visit its documentation for more details on this method.

    | Improve this Doc View Source

    GetMessagesAsync(UInt64, Direction, Int32, RequestOptions)

    Gets a collection of messages in this channel.

    Declaration
    public override IAsyncEnumerable<IReadOnlyCollection<IMessage>> GetMessagesAsync(ulong fromMessageId, Direction dir, int limit = 100, RequestOptions options = null)
    Parameters
    Type Name Description
    UInt64 fromMessageId

    The ID of the starting message to get the messages from.

    Direction dir

    The direction of the messages to be gotten from.

    Int32 limit

    The numbers of message to be gotten from.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    IAsyncEnumerable<IReadOnlyCollection<IMessage>>

    Paged collection of messages.

    Overrides
    SocketTextChannel.GetMessagesAsync(UInt64, Direction, Int32, RequestOptions)
    Remarks

    This method follows the same behavior as described in . Please visit its documentation for more details on this method.

    | Improve this Doc View Source

    GetPinnedMessagesAsync(RequestOptions)

    Gets a read-only collection of pinned messages in this channel.

    Declaration
    public override Task<IReadOnlyCollection<RestMessage>> GetPinnedMessagesAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task<IReadOnlyCollection<RestMessage>>

    A task that represents the asynchronous get operation for retrieving pinned messages in this channel. The task result contains a read-only collection of messages found in the pinned messages.

    Overrides
    SocketTextChannel.GetPinnedMessagesAsync(RequestOptions)
    Remarks

    This method follows the same behavior as described in GetPinnedMessagesAsync(RequestOptions). Please visit its documentation for more details on this method.

    | Improve this Doc View Source

    GetUser(UInt64)

    Declaration
    public override SocketGuildUser GetUser(ulong id)
    Parameters
    Type Name Description
    UInt64 id
    Returns
    Type Description
    SocketGuildUser
    Overrides
    SocketTextChannel.GetUser(UInt64)
    | Improve this Doc View Source

    GetWebhookAsync(UInt64, RequestOptions)

    Gets a webhook available in this text channel.

    Declaration
    public override Task<RestWebhook> GetWebhookAsync(ulong id, RequestOptions options = null)
    Parameters
    Type Name Description
    UInt64 id

    The identifier 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 get operation. The task result contains a webhook associated with the identifier; null if the webhook is not found.

    Overrides
    SocketTextChannel.GetWebhookAsync(UInt64, RequestOptions)
    | Improve this Doc View Source

    GetWebhooksAsync(RequestOptions)

    Gets the webhooks available in this text channel.

    Declaration
    public override Task<IReadOnlyCollection<RestWebhook>> GetWebhooksAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task<IReadOnlyCollection<RestWebhook>>

    A task that represents the asynchronous get operation. The task result contains a read-only collection of webhooks that is available in this channel.

    Overrides
    SocketTextChannel.GetWebhooksAsync(RequestOptions)
    | Improve this Doc View Source

    ModifyAsync(Action<AudioChannelProperties>, RequestOptions)

    Declaration
    public async Task ModifyAsync(Action<AudioChannelProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<AudioChannelProperties> func
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    ModifyAsync(Action<TextChannelProperties>, RequestOptions)

    Declaration
    public override Task ModifyAsync(Action<TextChannelProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<TextChannelProperties> func
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    SocketTextChannel.ModifyAsync(Action<TextChannelProperties>, RequestOptions)
    | Improve this Doc View Source

    ModifyAsync(Action<VoiceChannelProperties>, RequestOptions)

    Declaration
    public Task ModifyAsync(Action<VoiceChannelProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<VoiceChannelProperties> func
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    ModifyMessageAsync(UInt64, Action<MessageProperties>, RequestOptions)

    Declaration
    public override Task<IUserMessage> ModifyMessageAsync(ulong messageId, Action<MessageProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    UInt64 messageId
    Action<MessageProperties> func
    RequestOptions options
    Returns
    Type Description
    Task<IUserMessage>
    Overrides
    SocketTextChannel.ModifyMessageAsync(UInt64, Action<MessageProperties>, RequestOptions)
    | Improve this Doc View Source

    SendFileAsync(FileAttachment, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)

    Declaration
    public override Task<RestUserMessage> SendFileAsync(FileAttachment attachment, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags))
    Parameters
    Type Name Description
    FileAttachment attachment
    String text
    Boolean isTTS
    Embed embed
    RequestOptions options
    AllowedMentions allowedMentions
    MessageReference messageReference
    MessageComponent components
    ISticker[] stickers
    Embed[] embeds
    MessageFlags flags
    Returns
    Type Description
    Task<RestUserMessage>
    Overrides
    SocketTextChannel.SendFileAsync(FileAttachment, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    | Improve this Doc View Source

    SendFileAsync(Stream, String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)

    Declaration
    public override Task<RestUserMessage> SendFileAsync(Stream stream, string filename, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags))
    Parameters
    Type Name Description
    Stream stream
    String filename
    String text
    Boolean isTTS
    Embed embed
    RequestOptions options
    Boolean isSpoiler
    AllowedMentions allowedMentions
    MessageReference messageReference
    MessageComponent components
    ISticker[] stickers
    Embed[] embeds
    MessageFlags flags
    Returns
    Type Description
    Task<RestUserMessage>
    Overrides
    SocketTextChannel.SendFileAsync(Stream, String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    | Improve this Doc View Source

    SendFileAsync(String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)

    Declaration
    public override Task<RestUserMessage> SendFileAsync(string filePath, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, bool isSpoiler = false, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags))
    Parameters
    Type Name Description
    String filePath
    String text
    Boolean isTTS
    Embed embed
    RequestOptions options
    Boolean isSpoiler
    AllowedMentions allowedMentions
    MessageReference messageReference
    MessageComponent components
    ISticker[] stickers
    Embed[] embeds
    MessageFlags flags
    Returns
    Type Description
    Task<RestUserMessage>
    Overrides
    SocketTextChannel.SendFileAsync(String, String, Boolean, Embed, RequestOptions, Boolean, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    | Improve this Doc View Source

    SendFilesAsync(IEnumerable<FileAttachment>, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)

    Declaration
    public override Task<RestUserMessage> SendFilesAsync(IEnumerable<FileAttachment> attachments, string text, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags))
    Parameters
    Type Name Description
    IEnumerable<FileAttachment> attachments
    String text
    Boolean isTTS
    Embed embed
    RequestOptions options
    AllowedMentions allowedMentions
    MessageReference messageReference
    MessageComponent components
    ISticker[] stickers
    Embed[] embeds
    MessageFlags flags
    Returns
    Type Description
    Task<RestUserMessage>
    Overrides
    SocketTextChannel.SendFilesAsync(IEnumerable<FileAttachment>, String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    | Improve this Doc View Source

    SendMessageAsync(String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)

    Declaration
    public override Task<RestUserMessage> SendMessageAsync(string text = null, bool isTTS = false, Embed embed = null, RequestOptions options = null, AllowedMentions allowedMentions = null, MessageReference messageReference = null, MessageComponent components = null, ISticker[] stickers = null, Embed[] embeds = null, MessageFlags flags = default(MessageFlags))
    Parameters
    Type Name Description
    String text
    Boolean isTTS
    Embed embed
    RequestOptions options
    AllowedMentions allowedMentions
    MessageReference messageReference
    MessageComponent components
    ISticker[] stickers
    Embed[] embeds
    MessageFlags flags
    Returns
    Type Description
    Task<RestUserMessage>
    Overrides
    SocketTextChannel.SendMessageAsync(String, Boolean, Embed, RequestOptions, AllowedMentions, MessageReference, MessageComponent, ISticker[], Embed[], MessageFlags)
    | Improve this Doc View Source

    TriggerTypingAsync(RequestOptions)

    Declaration
    public override Task TriggerTypingAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    SocketTextChannel.TriggerTypingAsync(RequestOptions)

    Implements

    IEntity<TId>
    ITextChannel
    ISocketMessageChannel
    IVoiceChannel
    IMessageChannel
    INestedChannel
    IGuildChannel
    IDeletable
    IMentionable
    ISocketAudioChannel
    IAudioChannel
    IChannel
    ISnowflakeEntity
    IEntity<TId>

    Theme

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