Class RestClient
public sealed class RestClient : IDisposable
- Inheritance
-
RestClient
- Implements
- Inherited Members
Constructors
RestClient(IToken, RestClientConfiguration?)
public RestClient(IToken token, RestClientConfiguration? configuration = null)
Parameters
token
ITokenconfiguration
RestClientConfiguration
RestClient(RestClientConfiguration?)
public RestClient(RestClientConfiguration? configuration = null)
Parameters
configuration
RestClientConfiguration
Properties
Token
The token of the RestClient.
public IToken? Token { get; }
Property Value
Methods
AddGuildThreadUserAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task AddGuildThreadUserAsync(ulong threadId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
threadId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
AddGuildUserAsync(ulong, ulong, GuildUserProperties, RestRequestProperties?, CancellationToken)
public Task<GuildUser?> AddGuildUserAsync(ulong guildId, ulong userId, GuildUserProperties userProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulonguserProperties
GuildUserPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
AddGuildUserRoleAsync(ulong, ulong, ulong, RestRequestProperties?, CancellationToken)
public Task AddGuildUserRoleAsync(ulong guildId, ulong userId, ulong roleId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongroleId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
AddMessageReactionAsync(ulong, ulong, ReactionEmojiProperties, RestRequestProperties?, CancellationToken)
public Task AddMessageReactionAsync(ulong channelId, ulong messageId, ReactionEmojiProperties emoji, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongemoji
ReactionEmojiPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
BanGuildUserAsync(ulong, ulong, int, RestRequestProperties?, CancellationToken)
public Task BanGuildUserAsync(ulong guildId, ulong userId, int deleteMessageSeconds = 0, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongdeleteMessageSeconds
intproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
BanGuildUsersAsync(ulong, IEnumerable<ulong>, int, RestRequestProperties?, CancellationToken)
public Task<GuildBulkBan> BanGuildUsersAsync(ulong guildId, IEnumerable<ulong> userIds, int deleteMessageSeconds = 0, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserIds
IEnumerable<ulong>deleteMessageSeconds
intproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
BulkOverwriteGlobalApplicationCommandsAsync(ulong, IEnumerable<ApplicationCommandProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationCommand>> BulkOverwriteGlobalApplicationCommandsAsync(ulong applicationId, IEnumerable<ApplicationCommandProperties> commands, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongcommands
IEnumerable<ApplicationCommandProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
BulkOverwriteGuildApplicationCommandsAsync(ulong, ulong, IEnumerable<ApplicationCommandProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildApplicationCommand>> BulkOverwriteGuildApplicationCommandsAsync(ulong applicationId, ulong guildId, IEnumerable<ApplicationCommandProperties> commands, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongcommands
IEnumerable<ApplicationCommandProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ConsumeEntitlementAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task ConsumeEntitlementAsync(ulong applicationId, ulong entitlementId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongentitlementId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateApplicationEmojiAsync(ulong, ApplicationEmojiProperties, RestRequestProperties?, CancellationToken)
public Task<ApplicationEmoji> CreateApplicationEmojiAsync(ulong applicationId, ApplicationEmojiProperties applicationEmojiProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongapplicationEmojiProperties
ApplicationEmojiPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateAutoModerationRuleAsync(ulong, AutoModerationRuleProperties, RestRequestProperties?, CancellationToken)
public Task<AutoModerationRule> CreateAutoModerationRuleAsync(ulong guildId, AutoModerationRuleProperties autoModerationRuleProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongautoModerationRuleProperties
AutoModerationRulePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateForumGuildThreadAsync(ulong, ForumGuildThreadProperties, RestRequestProperties?, CancellationToken)
public Task<ForumGuildThread> CreateForumGuildThreadAsync(ulong channelId, ForumGuildThreadProperties threadProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongthreadProperties
ForumGuildThreadPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGlobalApplicationCommandAsync(ulong, ApplicationCommandProperties, RestRequestProperties?, CancellationToken)
public Task<ApplicationCommand> CreateGlobalApplicationCommandAsync(ulong applicationId, ApplicationCommandProperties applicationCommandProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongapplicationCommandProperties
ApplicationCommandPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGoogleCloudPlatformStorageBucketsAsync(ulong, IEnumerable<GoogleCloudPlatformStorageBucketProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GoogleCloudPlatformStorageBucket>> CreateGoogleCloudPlatformStorageBucketsAsync(ulong channelId, IEnumerable<GoogleCloudPlatformStorageBucketProperties> buckets, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongbuckets
IEnumerable<GoogleCloudPlatformStorageBucketProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGroupDMChannelAsync(GroupDMChannelProperties, RestRequestProperties?, CancellationToken)
public Task<GroupDMChannel> CreateGroupDMChannelAsync(GroupDMChannelProperties groupDMChannelProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
groupDMChannelProperties
GroupDMChannelPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildApplicationCommandAsync(ulong, ulong, ApplicationCommandProperties, RestRequestProperties?, CancellationToken)
public Task<GuildApplicationCommand> CreateGuildApplicationCommandAsync(ulong applicationId, ulong guildId, ApplicationCommandProperties applicationCommandProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongapplicationCommandProperties
ApplicationCommandPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildAsync(GuildProperties, RestRequestProperties?, CancellationToken)
public Task<RestGuild> CreateGuildAsync(GuildProperties guildProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildProperties
GuildPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildChannelAsync(ulong, GuildChannelProperties, RestRequestProperties?, CancellationToken)
public Task<IGuildChannel> CreateGuildChannelAsync(ulong guildId, GuildChannelProperties channelProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongchannelProperties
GuildChannelPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildChannelInviteAsync(ulong, InviteProperties?, RestRequestProperties?, CancellationToken)
public Task<RestInvite> CreateGuildChannelInviteAsync(ulong channelId, InviteProperties? inviteProperties = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulonginviteProperties
InvitePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildEmojiAsync(ulong, GuildEmojiProperties, RestRequestProperties?, CancellationToken)
public Task<GuildEmoji> CreateGuildEmojiAsync(ulong guildId, GuildEmojiProperties guildEmojiProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongguildEmojiProperties
GuildEmojiPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildFromGuildTemplateAsync(string, GuildFromGuildTemplateProperties, RestRequestProperties?, CancellationToken)
public Task<RestGuild> CreateGuildFromGuildTemplateAsync(string templateCode, GuildFromGuildTemplateProperties guildProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
templateCode
stringguildProperties
GuildFromGuildTemplatePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildRoleAsync(ulong, RoleProperties, RestRequestProperties?, CancellationToken)
public Task<Role> CreateGuildRoleAsync(ulong guildId, RoleProperties guildRoleProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongguildRoleProperties
RolePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildScheduledEventAsync(ulong, GuildScheduledEventProperties, RestRequestProperties?, CancellationToken)
public Task<GuildScheduledEvent> CreateGuildScheduledEventAsync(ulong guildId, GuildScheduledEventProperties guildScheduledEventProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongguildScheduledEventProperties
GuildScheduledEventPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildStickerAsync(ulong, GuildStickerProperties, RestRequestProperties?, CancellationToken)
public Task<GuildSticker> CreateGuildStickerAsync(ulong guildId, GuildStickerProperties sticker, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongsticker
GuildStickerPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildTemplateAsync(ulong, GuildTemplateProperties, RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> CreateGuildTemplateAsync(ulong guildId, GuildTemplateProperties guildTemplateProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongguildTemplateProperties
GuildTemplatePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildThreadAsync(ulong, GuildThreadProperties, RestRequestProperties?, CancellationToken)
public Task<GuildThread> CreateGuildThreadAsync(ulong channelId, GuildThreadProperties threadProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongthreadProperties
GuildThreadPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateGuildThreadAsync(ulong, ulong, GuildThreadFromMessageProperties, RestRequestProperties?, CancellationToken)
public Task<GuildThread> CreateGuildThreadAsync(ulong channelId, ulong messageId, GuildThreadFromMessageProperties threadFromMessageProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongthreadFromMessageProperties
GuildThreadFromMessagePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateStageInstanceAsync(StageInstanceProperties, RestRequestProperties?, CancellationToken)
public Task<StageInstance> CreateStageInstanceAsync(StageInstanceProperties stageInstanceProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
stageInstanceProperties
StageInstancePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateTestEntitlementAsync(ulong, TestEntitlementProperties, RestRequestProperties?, CancellationToken)
public Task<Entitlement> CreateTestEntitlementAsync(ulong applicationId, TestEntitlementProperties testEntitlementProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongtestEntitlementProperties
TestEntitlementPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CreateWebhookAsync(ulong, WebhookProperties, RestRequestProperties?, CancellationToken)
public Task<Webhook> CreateWebhookAsync(ulong channelId, WebhookProperties webhookProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongwebhookProperties
WebhookPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
CrosspostMessageAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<RestMessage> CrosspostMessageAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteAllMessageReactionsAsync(ulong, ulong, ReactionEmojiProperties, RestRequestProperties?, CancellationToken)
public Task DeleteAllMessageReactionsAsync(ulong channelId, ulong messageId, ReactionEmojiProperties emoji, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongemoji
ReactionEmojiPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteAllMessageReactionsAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteAllMessageReactionsAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteApplicationEmojiAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteApplicationEmojiAsync(ulong applicationId, ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongemojiId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteAutoModerationRuleAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteAutoModerationRuleAsync(ulong guildId, ulong autoModerationRuleId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongautoModerationRuleId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteChannelAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<Channel> DeleteChannelAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGlobalApplicationCommandAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGlobalApplicationCommandAsync(ulong applicationId, ulong commandId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongcommandId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildApplicationCommandAsync(ulong, ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildApplicationCommandAsync(ulong applicationId, ulong guildId, ulong commandId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongcommandId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildChannelPermissionAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildChannelPermissionAsync(ulong channelId, ulong overwriteId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongoverwriteId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildEmojiAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildEmojiAsync(ulong guildId, ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongemojiId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildIntegrationAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildIntegrationAsync(ulong guildId, ulong integrationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongintegrationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildInviteAsync(string, RestRequestProperties?, CancellationToken)
public Task<RestInvite> DeleteGuildInviteAsync(string inviteCode, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
inviteCode
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildRoleAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildRoleAsync(ulong guildId, ulong roleId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongroleId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildScheduledEventAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildScheduledEventAsync(ulong guildId, ulong scheduledEventId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongscheduledEventId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildStickerAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildStickerAsync(ulong guildId, ulong stickerId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongstickerId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildTemplateAsync(ulong, string, RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> DeleteGuildTemplateAsync(ulong guildId, string templateCode, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongtemplateCode
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteGuildThreadUserAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteGuildThreadUserAsync(ulong threadId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
threadId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteInteractionFollowupMessageAsync(ulong, string, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteInteractionFollowupMessageAsync(ulong applicationId, string interactionToken, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteInteractionResponseAsync(ulong, string, RestRequestProperties?, CancellationToken)
public Task DeleteInteractionResponseAsync(ulong applicationId, string interactionToken, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteMessageAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteMessageAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteMessageReactionAsync(ulong, ulong, ReactionEmojiProperties, RestRequestProperties?, CancellationToken)
public Task DeleteMessageReactionAsync(ulong channelId, ulong messageId, ReactionEmojiProperties emoji, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongemoji
ReactionEmojiPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteMessageReactionAsync(ulong, ulong, ReactionEmojiProperties, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteMessageReactionAsync(ulong channelId, ulong messageId, ReactionEmojiProperties emoji, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongemoji
ReactionEmojiPropertiesuserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteMessagesAsync(ulong, IAsyncEnumerable<ulong>, RestRequestProperties?, CancellationToken)
public Task DeleteMessagesAsync(ulong channelId, IAsyncEnumerable<ulong> messageIds, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageIds
IAsyncEnumerable<ulong>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteMessagesAsync(ulong, IEnumerable<ulong>, RestRequestProperties?, CancellationToken)
public Task DeleteMessagesAsync(ulong channelId, IEnumerable<ulong> messageIds, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageIds
IEnumerable<ulong>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteStageInstanceAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeleteStageInstanceAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteTestEntitlementAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task DeleteTestEntitlementAsync(ulong applicationId, ulong entitlementId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongentitlementId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteWebhookAsync(ulong, RestRequestProperties?, CancellationToken)
public Task DeleteWebhookAsync(ulong webhookId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteWebhookMessageAsync(ulong, string, ulong, ulong?, RestRequestProperties?, CancellationToken)
public Task DeleteWebhookMessageAsync(ulong webhookId, string webhookToken, ulong messageId, ulong? threadId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringmessageId
ulongthreadId
ulong?properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
DeleteWebhookWithTokenAsync(ulong, string, RestRequestProperties?, CancellationToken)
public Task DeleteWebhookWithTokenAsync(ulong webhookId, string webhookToken, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
Dispose()
public void Dispose()
EndMessagePollAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<RestMessage> EndMessagePollAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
EnterTypingStateAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IDisposable> EnterTypingStateAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ExecuteWebhookAsync(ulong, string, WebhookMessageProperties, bool, ulong?, RestRequestProperties?, CancellationToken)
public Task<RestMessage?> ExecuteWebhookAsync(ulong webhookId, string webhookToken, WebhookMessageProperties message, bool wait = false, ulong? threadId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringmessage
WebhookMessagePropertieswait
boolthreadId
ulong?properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
FindGuildUserAsync(ulong, string, int, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildUser>> FindGuildUserAsync(ulong guildId, string name, int limit, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongname
stringlimit
intproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
FollowAnnouncementGuildChannelAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<FollowedChannel> FollowAnnouncementGuildChannelAsync(ulong channelId, ulong webhookChannelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongwebhookChannelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetActiveGuildThreadsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildThread>> GetActiveGuildThreadsAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetApplicationAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<Application> GetApplicationAsync(ulong applicationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetApplicationCommandGuildPermissionsAsync(ulong, ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<ApplicationCommandGuildPermissions> GetApplicationCommandGuildPermissionsAsync(ulong applicationId, ulong guildId, ulong commandId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongcommandId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetApplicationCommandsGuildPermissionsAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationCommandGuildPermissions>> GetApplicationCommandsGuildPermissionsAsync(ulong applicationId, ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetApplicationEmojiAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<ApplicationEmoji> GetApplicationEmojiAsync(ulong applicationId, ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongemojiId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetApplicationEmojisAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationEmoji>> GetApplicationEmojisAsync(ulong applicationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetApplicationRoleConnectionMetadataRecordsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationRoleConnectionMetadata>> GetApplicationRoleConnectionMetadataRecordsAsync(ulong applicationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAutoModerationRuleAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<AutoModerationRule> GetAutoModerationRuleAsync(ulong guildId, ulong autoModerationRuleId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongautoModerationRuleId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetAutoModerationRulesAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<AutoModerationRule>> GetAutoModerationRulesAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetChannelAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<Channel> GetChannelAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetChannelWebhooksAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Webhook>> GetChannelWebhooksAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentApplicationAsync(RestRequestProperties?, CancellationToken)
public Task<CurrentApplication> GetCurrentApplicationAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentAuthorizationInformationAsync(RestRequestProperties?, CancellationToken)
public Task<AuthorizationInformation> GetCurrentAuthorizationInformationAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentBotApplicationInformationAsync(RestRequestProperties?, CancellationToken)
public Task<CurrentApplication> GetCurrentBotApplicationInformationAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentGuildUserVoiceStateAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<VoiceState> GetCurrentGuildUserVoiceStateAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentUserApplicationRoleConnectionAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<ApplicationRoleConnection> GetCurrentUserApplicationRoleConnectionAsync(ulong applicationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentUserAsync(RestRequestProperties?, CancellationToken)
public Task<CurrentUser> GetCurrentUserAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentUserConnectionsAsync(RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Connection>> GetCurrentUserConnectionsAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentUserGuildUserAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildUser> GetCurrentUserGuildUserAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetCurrentUserGuildsAsync(GuildsPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<RestGuild> GetCurrentUserGuildsAsync(GuildsPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
paginationProperties
GuildsPaginationPropertiesproperties
RestRequestProperties
Returns
GetDMChannelAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<DMChannel> GetDMChannelAsync(ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetEntitlementsAsync(ulong, EntitlementsPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<Entitlement> GetEntitlementsAsync(ulong applicationId, EntitlementsPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
applicationId
ulongpaginationProperties
EntitlementsPaginationPropertiesproperties
RestRequestProperties
Returns
GetGatewayAsync(RestRequestProperties?, CancellationToken)
public Task<string> GetGatewayAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGatewayBotAsync(RestRequestProperties?, CancellationToken)
public Task<GatewayBot> GetGatewayBotAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGlobalApplicationCommandAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<ApplicationCommand> GetGlobalApplicationCommandAsync(ulong applicationId, ulong commandId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongcommandId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGlobalApplicationCommandsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationCommand>> GetGlobalApplicationCommandsAsync(ulong applicationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildApplicationCommandAsync(ulong, ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<GuildApplicationCommand> GetGuildApplicationCommandAsync(ulong applicationId, ulong guildId, ulong commandId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongcommandId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildApplicationCommandsAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildApplicationCommand>> GetGuildApplicationCommandsAsync(ulong applicationId, ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildAsync(ulong, bool, RestRequestProperties?, CancellationToken)
public Task<RestGuild> GetGuildAsync(ulong guildId, bool withCounts = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongwithCounts
boolproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildAuditLogAsync(ulong, GuildAuditLogPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<RestAuditLogEntry> GetGuildAuditLogAsync(ulong guildId, GuildAuditLogPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
guildId
ulongpaginationProperties
GuildAuditLogPaginationPropertiesproperties
RestRequestProperties
Returns
GetGuildBanAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<GuildBan> GetGuildBanAsync(ulong guildId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildBansAsync(ulong, PaginationProperties<ulong>?, RestRequestProperties?)
public IAsyncEnumerable<GuildBan> GetGuildBansAsync(ulong guildId, PaginationProperties<ulong>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
guildId
ulongpaginationProperties
PaginationProperties<ulong>properties
RestRequestProperties
Returns
GetGuildChannelInvitesAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IEnumerable<RestInvite>> GetGuildChannelInvitesAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildChannelsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<IGuildChannel>> GetGuildChannelsAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildEmojiAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<GuildEmoji> GetGuildEmojiAsync(ulong guildId, ulong emojiId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongemojiId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildEmojisAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildEmoji>> GetGuildEmojisAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildIntegrationsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Integration>> GetGuildIntegrationsAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildInviteAsync(string, bool, bool, ulong?, RestRequestProperties?, CancellationToken)
public Task<RestInvite> GetGuildInviteAsync(string inviteCode, bool withCounts = false, bool withExpiration = false, ulong? guildScheduledEventId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
inviteCode
stringwithCounts
boolwithExpiration
boolguildScheduledEventId
ulong?properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildInvitesAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IEnumerable<RestInvite>> GetGuildInvitesAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildOnboardingAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildOnboarding> GetGuildOnboardingAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildPreviewAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildPreview> GetGuildPreviewAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildPruneCountAsync(ulong, int, IEnumerable<ulong>?, RestRequestProperties?, CancellationToken)
public Task<int> GetGuildPruneCountAsync(ulong guildId, int days, IEnumerable<ulong>? roles = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongdays
introles
IEnumerable<ulong>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildRoleAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<Role> GetGuildRoleAsync(ulong guildId, ulong roleId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongroleId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildRolesAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Role>> GetGuildRolesAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildScheduledEventAsync(ulong, ulong, bool, RestRequestProperties?, CancellationToken)
public Task<GuildScheduledEvent> GetGuildScheduledEventAsync(ulong guildId, ulong scheduledEventId, bool withUserCount = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongscheduledEventId
ulongwithUserCount
boolproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildScheduledEventUsersAsync(ulong, ulong, OptionalGuildUsersPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<GuildScheduledEventUser> GetGuildScheduledEventUsersAsync(ulong guildId, ulong scheduledEventId, OptionalGuildUsersPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
guildId
ulongscheduledEventId
ulongpaginationProperties
OptionalGuildUsersPaginationPropertiesproperties
RestRequestProperties
Returns
GetGuildScheduledEventsAsync(ulong, bool, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildScheduledEvent>> GetGuildScheduledEventsAsync(ulong guildId, bool withUserCount = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongwithUserCount
boolproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildStickerAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<GuildSticker> GetGuildStickerAsync(ulong guildId, ulong stickerId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongstickerId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildStickersAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<GuildSticker>> GetGuildStickersAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildTemplateAsync(string, RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> GetGuildTemplateAsync(string templateCode, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
templateCode
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildTemplatesAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IEnumerable<GuildTemplate>> GetGuildTemplatesAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildThreadUserAsync(ulong, ulong, bool, RestRequestProperties?, CancellationToken)
public Task<ThreadUser> GetGuildThreadUserAsync(ulong threadId, ulong userId, bool withGuildUser = false, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
threadId
ulonguserId
ulongwithGuildUser
boolproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildThreadUsersAsync(ulong, OptionalGuildUsersPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<ThreadUser> GetGuildThreadUsersAsync(ulong threadId, OptionalGuildUsersPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
threadId
ulongpaginationProperties
OptionalGuildUsersPaginationPropertiesproperties
RestRequestProperties
Returns
GetGuildUserAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<GuildUser> GetGuildUserAsync(ulong guildId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildUserVoiceStateAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<VoiceState> GetGuildUserVoiceStateAsync(ulong guildId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildUsersAsync(ulong, PaginationProperties<ulong>?, RestRequestProperties?)
public IAsyncEnumerable<GuildUser> GetGuildUsersAsync(ulong guildId, PaginationProperties<ulong>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
guildId
ulongpaginationProperties
PaginationProperties<ulong>properties
RestRequestProperties
Returns
GetGuildVanityInviteAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildVanityInvite> GetGuildVanityInviteAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildVoiceRegionsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IEnumerable<VoiceRegion>> GetGuildVoiceRegionsAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildWebhooksAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Webhook>> GetGuildWebhooksAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildWelcomeScreenAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildWelcomeScreen> GetGuildWelcomeScreenAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildWidgetAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildWidget> GetGuildWidgetAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetGuildWidgetSettingsAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<GuildWidgetSettings> GetGuildWidgetSettingsAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetInteractionFollowupMessageAsync(ulong, string, ulong, RestRequestProperties?, CancellationToken)
public Task<RestMessage> GetInteractionFollowupMessageAsync(ulong applicationId, string interactionToken, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetInteractionResponseAsync(ulong, string, RestRequestProperties?, CancellationToken)
public Task<RestMessage> GetInteractionResponseAsync(ulong applicationId, string interactionToken, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetJoinedPrivateArchivedGuildThreadsAsync(ulong, PaginationProperties<ulong>?, RestRequestProperties?)
public IAsyncEnumerable<GuildThread> GetJoinedPrivateArchivedGuildThreadsAsync(ulong channelId, PaginationProperties<ulong>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
channelId
ulongpaginationProperties
PaginationProperties<ulong>properties
RestRequestProperties
Returns
GetMessageAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task<RestMessage> GetMessageAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetMessagePollAnswerVotersAsync(ulong, ulong, int, PaginationProperties<ulong>?, RestRequestProperties?)
public IAsyncEnumerable<User> GetMessagePollAnswerVotersAsync(ulong channelId, ulong messageId, int answerId, PaginationProperties<ulong>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
channelId
ulongmessageId
ulonganswerId
intpaginationProperties
PaginationProperties<ulong>properties
RestRequestProperties
Returns
GetMessageReactionsAsync(ulong, ulong, ReactionEmojiProperties, MessageReactionsPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<User> GetMessageReactionsAsync(ulong channelId, ulong messageId, ReactionEmojiProperties emoji, MessageReactionsPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
channelId
ulongmessageId
ulongemoji
ReactionEmojiPropertiespaginationProperties
MessageReactionsPaginationPropertiesproperties
RestRequestProperties
Returns
GetMessagesAroundAsync(ulong, ulong, int?, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<RestMessage>> GetMessagesAroundAsync(ulong channelId, ulong messageId, int? limit = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulonglimit
int?properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetMessagesAsync(ulong, PaginationProperties<ulong>?, RestRequestProperties?)
public IAsyncEnumerable<RestMessage> GetMessagesAsync(ulong channelId, PaginationProperties<ulong>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
channelId
ulongpaginationProperties
PaginationProperties<ulong>properties
RestRequestProperties
Returns
GetPinnedMessagesAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<RestMessage>> GetPinnedMessagesAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetPrivateArchivedGuildThreadsAsync(ulong, PaginationProperties<DateTimeOffset>?, RestRequestProperties?)
public IAsyncEnumerable<GuildThread> GetPrivateArchivedGuildThreadsAsync(ulong channelId, PaginationProperties<DateTimeOffset>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
channelId
ulongpaginationProperties
PaginationProperties<DateTimeOffset>properties
RestRequestProperties
Returns
GetPublicArchivedGuildThreadsAsync(ulong, PaginationProperties<DateTimeOffset>?, RestRequestProperties?)
public IAsyncEnumerable<GuildThread> GetPublicArchivedGuildThreadsAsync(ulong channelId, PaginationProperties<DateTimeOffset>? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
channelId
ulongpaginationProperties
PaginationProperties<DateTimeOffset>properties
RestRequestProperties
Returns
GetSkusAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Sku>> GetSkusAsync(ulong applicationId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetStageInstanceAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<StageInstance> GetStageInstanceAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetStickerAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<StandardSticker> GetStickerAsync(ulong stickerId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
stickerId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetStickerPackAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<StickerPack> GetStickerPackAsync(ulong stickerPackId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
stickerPackId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetStickerPacksAsync(RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<StickerPack>> GetStickerPacksAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetUserAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<User> GetUserAsync(ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
userId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetVoiceRegionsAsync(RestRequestProperties?, CancellationToken)
public Task<IEnumerable<VoiceRegion>> GetVoiceRegionsAsync(RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetWebhookAsync(ulong, RestRequestProperties?, CancellationToken)
public Task<Webhook> GetWebhookAsync(ulong webhookId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetWebhookMessageAsync(ulong, string, ulong, RestRequestProperties?, CancellationToken)
public Task<RestMessage> GetWebhookMessageAsync(ulong webhookId, string webhookToken, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GetWebhookWithTokenAsync(ulong, string, RestRequestProperties?, CancellationToken)
public Task<Webhook> GetWebhookWithTokenAsync(ulong webhookId, string webhookToken, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GroupDMChannelAddUserAsync(ulong, ulong, GroupDMChannelUserAddProperties, RestRequestProperties?, CancellationToken)
public Task GroupDMChannelAddUserAsync(ulong channelId, ulong userId, GroupDMChannelUserAddProperties groupDMChannelUserAddProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulonguserId
ulonggroupDMChannelUserAddProperties
GroupDMChannelUserAddPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GroupDMChannelDeleteUserAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task GroupDMChannelDeleteUserAsync(ulong channelId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
GuildPruneAsync(ulong, GuildPruneProperties, RestRequestProperties?, CancellationToken)
public Task<int?> GuildPruneAsync(ulong guildId, GuildPruneProperties pruneProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongpruneProperties
GuildPrunePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
JoinGuildThreadAsync(ulong, RestRequestProperties?, CancellationToken)
public Task JoinGuildThreadAsync(ulong threadId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
threadId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
KickGuildUserAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task KickGuildUserAsync(ulong guildId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
LeaveGuildAsync(ulong, RestRequestProperties?, CancellationToken)
public Task LeaveGuildAsync(ulong guildId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
LeaveGuildThreadAsync(ulong, RestRequestProperties?, CancellationToken)
public Task LeaveGuildThreadAsync(ulong threadId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
threadId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyApplicationEmojiAsync(ulong, ulong, Action<ApplicationEmojiOptions>, RestRequestProperties?, CancellationToken)
public Task<ApplicationEmoji> ModifyApplicationEmojiAsync(ulong applicationId, ulong emojiId, Action<ApplicationEmojiOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongemojiId
ulongaction
Action<ApplicationEmojiOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyAutoModerationRuleAsync(ulong, ulong, Action<AutoModerationRuleOptions>, RestRequestProperties?, CancellationToken)
public Task<AutoModerationRule> ModifyAutoModerationRuleAsync(ulong guildId, ulong autoModerationRuleId, Action<AutoModerationRuleOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongautoModerationRuleId
ulongaction
Action<AutoModerationRuleOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyCurrentApplicationAsync(Action<CurrentApplicationOptions>, RestRequestProperties?, CancellationToken)
public Task<CurrentApplication> ModifyCurrentApplicationAsync(Action<CurrentApplicationOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<CurrentApplicationOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyCurrentGuildUserAsync(ulong, Action<CurrentGuildUserOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildUser> ModifyCurrentGuildUserAsync(ulong guildId, Action<CurrentGuildUserOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongaction
Action<CurrentGuildUserOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyCurrentGuildUserVoiceStateAsync(ulong, Action<CurrentUserVoiceStateOptions>, RestRequestProperties?, CancellationToken)
public Task ModifyCurrentGuildUserVoiceStateAsync(ulong guildId, Action<CurrentUserVoiceStateOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongaction
Action<CurrentUserVoiceStateOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyCurrentUserAsync(Action<CurrentUserOptions>, RestRequestProperties?, CancellationToken)
public Task<CurrentUser> ModifyCurrentUserAsync(Action<CurrentUserOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
action
Action<CurrentUserOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGlobalApplicationCommandAsync(ulong, ulong, Action<ApplicationCommandOptions>, RestRequestProperties?, CancellationToken)
public Task<ApplicationCommand> ModifyGlobalApplicationCommandAsync(ulong applicationId, ulong commandId, Action<ApplicationCommandOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongcommandId
ulongaction
Action<ApplicationCommandOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGroupDMChannelAsync(ulong, Action<GroupDMChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<Channel> ModifyGroupDMChannelAsync(ulong channelId, Action<GroupDMChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongaction
Action<GroupDMChannelOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildApplicationCommandAsync(ulong, ulong, ulong, Action<ApplicationCommandOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildApplicationCommand> ModifyGuildApplicationCommandAsync(ulong applicationId, ulong guildId, ulong commandId, Action<ApplicationCommandOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongcommandId
ulongaction
Action<ApplicationCommandOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildAsync(ulong, Action<GuildOptions>, RestRequestProperties?, CancellationToken)
public Task<RestGuild> ModifyGuildAsync(ulong guildId, Action<GuildOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongaction
Action<GuildOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildChannelAsync(ulong, Action<GuildChannelOptions>, RestRequestProperties?, CancellationToken)
public Task<Channel> ModifyGuildChannelAsync(ulong channelId, Action<GuildChannelOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongaction
Action<GuildChannelOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildChannelPermissionsAsync(ulong, PermissionOverwriteProperties, RestRequestProperties?, CancellationToken)
public Task ModifyGuildChannelPermissionsAsync(ulong channelId, PermissionOverwriteProperties permissionOverwrite, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongpermissionOverwrite
PermissionOverwritePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildChannelPositionsAsync(ulong, IEnumerable<GuildChannelPositionProperties>, RestRequestProperties?, CancellationToken)
public Task ModifyGuildChannelPositionsAsync(ulong guildId, IEnumerable<GuildChannelPositionProperties> positions, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongpositions
IEnumerable<GuildChannelPositionProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildEmojiAsync(ulong, ulong, Action<GuildEmojiOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildEmoji> ModifyGuildEmojiAsync(ulong guildId, ulong emojiId, Action<GuildEmojiOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongemojiId
ulongaction
Action<GuildEmojiOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildMfaLevelAsync(ulong, MfaLevel, RestRequestProperties?, CancellationToken)
public Task<MfaLevel> ModifyGuildMfaLevelAsync(ulong guildId, MfaLevel mfaLevel, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongmfaLevel
MfaLevelproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildOnboardingAsync(ulong, Action<GuildOnboardingOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildOnboarding> ModifyGuildOnboardingAsync(ulong guildId, Action<GuildOnboardingOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongaction
Action<GuildOnboardingOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildRoleAsync(ulong, ulong, Action<RoleOptions>, RestRequestProperties?, CancellationToken)
public Task<Role> ModifyGuildRoleAsync(ulong guildId, ulong roleId, Action<RoleOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongroleId
ulongaction
Action<RoleOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildRolePositionsAsync(ulong, IEnumerable<RolePositionProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<Role>> ModifyGuildRolePositionsAsync(ulong guildId, IEnumerable<RolePositionProperties> positions, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongpositions
IEnumerable<RolePositionProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildScheduledEventAsync(ulong, ulong, Action<GuildScheduledEventOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildScheduledEvent> ModifyGuildScheduledEventAsync(ulong guildId, ulong scheduledEventId, Action<GuildScheduledEventOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongscheduledEventId
ulongaction
Action<GuildScheduledEventOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildStickerAsync(ulong, ulong, Action<GuildStickerOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildSticker> ModifyGuildStickerAsync(ulong guildId, ulong stickerId, Action<GuildStickerOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongstickerId
ulongaction
Action<GuildStickerOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildTemplateAsync(ulong, string, Action<GuildTemplateOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> ModifyGuildTemplateAsync(ulong guildId, string templateCode, Action<GuildTemplateOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongtemplateCode
stringaction
Action<GuildTemplateOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildUserAsync(ulong, ulong, Action<GuildUserOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildUser> ModifyGuildUserAsync(ulong guildId, ulong userId, Action<GuildUserOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongaction
Action<GuildUserOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildUserVoiceStateAsync(ulong, ulong, ulong, Action<VoiceStateOptions>, RestRequestProperties?, CancellationToken)
public Task ModifyGuildUserVoiceStateAsync(ulong guildId, ulong channelId, ulong userId, Action<VoiceStateOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongchannelId
ulonguserId
ulongaction
Action<VoiceStateOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildWelcomeScreenAsync(ulong, Action<GuildWelcomeScreenOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildWelcomeScreen> ModifyGuildWelcomeScreenAsync(ulong guildId, Action<GuildWelcomeScreenOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongaction
Action<GuildWelcomeScreenOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyGuildWidgetSettingsAsync(ulong, Action<GuildWidgetSettingsOptions>, RestRequestProperties?, CancellationToken)
public Task<GuildWidgetSettings> ModifyGuildWidgetSettingsAsync(ulong guildId, Action<GuildWidgetSettingsOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongaction
Action<GuildWidgetSettingsOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyInteractionFollowupMessageAsync(ulong, string, ulong, Action<MessageOptions>, RestRequestProperties?, CancellationToken)
public Task<RestMessage> ModifyInteractionFollowupMessageAsync(ulong applicationId, string interactionToken, ulong messageId, Action<MessageOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringmessageId
ulongaction
Action<MessageOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyInteractionResponseAsync(ulong, string, Action<MessageOptions>, RestRequestProperties?, CancellationToken)
public Task<RestMessage> ModifyInteractionResponseAsync(ulong applicationId, string interactionToken, Action<MessageOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringaction
Action<MessageOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyMessageAsync(ulong, ulong, Action<MessageOptions>, RestRequestProperties?, CancellationToken)
public Task<RestMessage> ModifyMessageAsync(ulong channelId, ulong messageId, Action<MessageOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongaction
Action<MessageOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyStageInstanceAsync(ulong, Action<StageInstanceOptions>, RestRequestProperties?, CancellationToken)
public Task<StageInstance> ModifyStageInstanceAsync(ulong channelId, Action<StageInstanceOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongaction
Action<StageInstanceOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyWebhookAsync(ulong, Action<WebhookOptions>, RestRequestProperties?, CancellationToken)
public Task<Webhook> ModifyWebhookAsync(ulong webhookId, Action<WebhookOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongaction
Action<WebhookOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyWebhookMessageAsync(ulong, string, ulong, Action<MessageOptions>, ulong?, RestRequestProperties?, CancellationToken)
public Task<RestMessage> ModifyWebhookMessageAsync(ulong webhookId, string webhookToken, ulong messageId, Action<MessageOptions> action, ulong? threadId = null, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringmessageId
ulongaction
Action<MessageOptions>threadId
ulong?properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
ModifyWebhookWithTokenAsync(ulong, string, Action<WebhookOptions>, RestRequestProperties?, CancellationToken)
public Task<Webhook> ModifyWebhookWithTokenAsync(ulong webhookId, string webhookToken, Action<WebhookOptions> action, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
webhookId
ulongwebhookToken
stringaction
Action<WebhookOptions>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
OverwriteApplicationCommandGuildPermissionsAsync(ulong, ulong, ulong, IEnumerable<ApplicationCommandGuildPermissionProperties>, RestRequestProperties?, CancellationToken)
public Task<ApplicationCommandGuildPermissions> OverwriteApplicationCommandGuildPermissionsAsync(ulong applicationId, ulong guildId, ulong commandId, IEnumerable<ApplicationCommandGuildPermissionProperties> newPermissions, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongguildId
ulongcommandId
ulongnewPermissions
IEnumerable<ApplicationCommandGuildPermissionProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
PinMessageAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task PinMessageAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
RemoveGuildUserRoleAsync(ulong, ulong, ulong, RestRequestProperties?, CancellationToken)
public Task RemoveGuildUserRoleAsync(ulong guildId, ulong userId, ulong roleId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongroleId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
SearchGuildUsersAsync(ulong, GuildUsersSearchPaginationProperties?, RestRequestProperties?)
public IAsyncEnumerable<GuildUserInfo> SearchGuildUsersAsync(ulong guildId, GuildUsersSearchPaginationProperties? paginationProperties = null, RestRequestProperties? properties = null)
Parameters
guildId
ulongpaginationProperties
GuildUsersSearchPaginationPropertiesproperties
RestRequestProperties
Returns
SendInteractionFollowupMessageAsync(ulong, string, InteractionMessageProperties, RestRequestProperties?, CancellationToken)
public Task<RestMessage> SendInteractionFollowupMessageAsync(ulong applicationId, string interactionToken, InteractionMessageProperties message, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulonginteractionToken
stringmessage
InteractionMessagePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
SendInteractionResponseAsync(ulong, string, InteractionCallback, RestRequestProperties?, CancellationToken)
public Task SendInteractionResponseAsync(ulong interactionId, string interactionToken, InteractionCallback callback, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
interactionId
ulonginteractionToken
stringcallback
InteractionCallbackproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
SendMessageAsync(ulong, MessageProperties, RestRequestProperties?, CancellationToken)
public Task<RestMessage> SendMessageAsync(ulong channelId, MessageProperties message, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessage
MessagePropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
SendRequestAsync(HttpMethod, FormattableString, string?, TopLevelResourceInfo?, RestRequestProperties?, bool, CancellationToken)
public Task<Stream> SendRequestAsync(HttpMethod method, FormattableString route, string? query = null, TopLevelResourceInfo? resourceInfo = null, RestRequestProperties? properties = null, bool global = true, CancellationToken cancellationToken = default)
Parameters
method
HttpMethodroute
FormattableStringquery
stringresourceInfo
TopLevelResourceInfo?properties
RestRequestPropertiesglobal
boolcancellationToken
CancellationToken
Returns
SendRequestAsync(HttpMethod, HttpContent, FormattableString, string?, TopLevelResourceInfo?, RestRequestProperties?, bool, CancellationToken)
public Task<Stream> SendRequestAsync(HttpMethod method, HttpContent content, FormattableString route, string? query = null, TopLevelResourceInfo? resourceInfo = null, RestRequestProperties? properties = null, bool global = true, CancellationToken cancellationToken = default)
Parameters
method
HttpMethodcontent
HttpContentroute
FormattableStringquery
stringresourceInfo
TopLevelResourceInfo?properties
RestRequestPropertiesglobal
boolcancellationToken
CancellationToken
Returns
SyncGuildTemplateAsync(ulong, string, RestRequestProperties?, CancellationToken)
public Task<GuildTemplate> SyncGuildTemplateAsync(ulong guildId, string templateCode, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulongtemplateCode
stringproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
TriggerTypingStateAsync(ulong, RestRequestProperties?, CancellationToken)
public Task TriggerTypingStateAsync(ulong channelId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
UnbanGuildUserAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task UnbanGuildUserAsync(ulong guildId, ulong userId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
guildId
ulonguserId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
UnpinMessageAsync(ulong, ulong, RestRequestProperties?, CancellationToken)
public Task UnpinMessageAsync(ulong channelId, ulong messageId, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
channelId
ulongmessageId
ulongproperties
RestRequestPropertiescancellationToken
CancellationToken
Returns
UpdateApplicationRoleConnectionMetadataRecordsAsync(ulong, IEnumerable<ApplicationRoleConnectionMetadataProperties>, RestRequestProperties?, CancellationToken)
public Task<IReadOnlyList<ApplicationRoleConnectionMetadata>> UpdateApplicationRoleConnectionMetadataRecordsAsync(ulong applicationId, IEnumerable<ApplicationRoleConnectionMetadataProperties> applicationRoleConnectionMetadataProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongapplicationRoleConnectionMetadataProperties
IEnumerable<ApplicationRoleConnectionMetadataProperties>properties
RestRequestPropertiescancellationToken
CancellationToken
Returns
UpdateCurrentUserApplicationRoleConnectionAsync(ulong, ApplicationRoleConnectionProperties, RestRequestProperties?, CancellationToken)
public Task<ApplicationRoleConnection> UpdateCurrentUserApplicationRoleConnectionAsync(ulong applicationId, ApplicationRoleConnectionProperties applicationRoleConnectionProperties, RestRequestProperties? properties = null, CancellationToken cancellationToken = default)
Parameters
applicationId
ulongapplicationRoleConnectionProperties
ApplicationRoleConnectionPropertiesproperties
RestRequestPropertiescancellationToken
CancellationToken