Class FluxerApiClient
REST API client for the Fluxer platform. Provides methods for all Fluxer API endpoints including authentication, channels, guilds, users, messages, and more.
public class FluxerApiClient : FluxerBaseApiClient
- Inheritance
-
objectFluxerApiClient
- Inherited Members
Remarks
This client handles HTTP requests to the Fluxer API with automatic rate limiting, JSON serialization, and error handling. It supports both synchronous operations via REST and can be paired with FluxerGatewayClient for real-time events.
Methods
AcknowledgeMessageAsync(ulong, ulong, MessageAckJson, RequestOptions?)
Acknowledge a message has been read for the current user.
public Task AcknowledgeMessageAsync(ulong channelId, ulong messageId, MessageAckJson details, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongdetailsMessageAckJsonoptionsRequestOptions
Returns
Remarks
User accounts only.
AddMemberRoleAsync(ulong, ulong, ulong, RequestOptions?)
Give role to a member in the guild.
public Task AddMemberRoleAsync(ulong guildId, ulong userId, ulong roleId, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongroleIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageRoles.
AddReactionAsync(ulong, ulong, string, RequestOptions?)
Add a reaction to a message.
public Task AddReactionAsync(ulong channelId, ulong messageId, string emoji, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongemojistringoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and AddReactions in a guild channel.
AddRecipientAsync(ulong, ulong, RequestOptions?)
Add a user to a group channel.
public Task AddRecipientAsync(ulong channelId, ulong userId, RequestOptions? options = null)
Parameters
channelIdulonguserIdulongoptionsRequestOptions
Returns
Remarks
User account only.
AddThreadMemberAsync(ulong, ulong, RequestOptions?)
Add a member to the thread.
public Task AddThreadMemberAsync(ulong channelId, ulong userId, RequestOptions? options = null)
Parameters
channelIdulonguserIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
BanMemberAsync(ulong, ulong, string?, int?, int?, RequestOptions?)
Ban a member from the guild.
public Task BanMemberAsync(ulong guildId, ulong userId, string? reason = null, int? deleteMessageSeconds = null, int? banDurationSeconds = null, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongreasonstringdeleteMessageSecondsint?banDurationSecondsint?optionsRequestOptions
Returns
Remarks
Requires BanMembers.
BulkDeleteMessagesAsync(ulong, HashSet<ulong>, RequestOptions?)
Delete many messages in a channel.
public Task BulkDeleteMessagesAsync(ulong channelId, HashSet<ulong> messageIds, RequestOptions? options = null)
Parameters
channelIdulongmessageIdsHashSet<ulong>optionsRequestOptions
Returns
Remarks
Requires ViewChannel, ReadMessageHistory and ManageMessages in a guild channel.
CheckUsernameAvailabilityAsync(string, string, RequestOptions?)
Check if a username is available.
public Task<UsernameAvailableJson> CheckUsernameAvailabilityAsync(string username, string discriminator, RequestOptions? options = null)
Parameters
usernamestringdiscriminatorstringoptionsRequestOptions
Returns
- Task<UsernameAvailableJson>
Fluxer.Net.UsernameAvailableJson
ClearMessageAcknowledgementAsync(ulong, RequestOptions?)
Clear message unreads for a channel.
public Task ClearMessageAcknowledgementAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
CreateCategoryChannelAsync(ulong, CreateCategoryChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<CategoryChannel> CreateCategoryChannelAsync(ulong guildId, CreateCategoryChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateCategoryChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateDMChannelAsync(CreatePrivateChannelRequest, RequestOptions?)
Create a DM channel.
public Task<DMChannel> CreateDMChannelAsync(CreatePrivateChannelRequest req, RequestOptions? options = null)
Parameters
reqCreatePrivateChannelRequestoptionsRequestOptions
Returns
CreateEmojiAsync(ulong, CreateGuildEmojiRequest, RequestOptions?)
Create emojis for the guild.
public Task<GuildEmoji> CreateEmojiAsync(ulong guildId, CreateGuildEmojiRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateGuildEmojiRequestoptionsRequestOptions
Returns
Remarks
Requires either CreateExpressions or ManageExpressions.
CreateEmojiBulkAsync(ulong, BulkCreateGuildEmojisRequest, RequestOptions?)
Create multiple emojis for a guild.
public Task<GuildEmojiBulkCreateJson> CreateEmojiBulkAsync(ulong guildId, BulkCreateGuildEmojisRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataBulkCreateGuildEmojisRequestoptionsRequestOptions
Returns
- Task<GuildEmojiBulkCreateJson>
Fluxer.Net.GuildEmojiBulkCreateJson
Remarks
Requires either CreateExpressions or ManageExpressions.
CreateForumChannelAsync(ulong, CreateForumChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<ForumChannel> CreateForumChannelAsync(ulong guildId, CreateForumChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateForumChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateForumTagAsync(ulong, CreateForumTagRequest, RequestOptions?)
Create a forum tag.
public Task<ForumChannel> CreateForumTagAsync(ulong channelId, CreateForumTagRequest req, RequestOptions? options = null)
Parameters
channelIdulongreqCreateForumTagRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannel.
CreateGroupChannelAsync(CreatePrivateChannelRequest, RequestOptions?)
Create a Group channel.
public Task<GroupChannel> CreateGroupChannelAsync(CreatePrivateChannelRequest req, RequestOptions? options = null)
Parameters
reqCreatePrivateChannelRequestoptionsRequestOptions
Returns
CreateGuildAsync(CreateGuildRequest, RequestOptions?)
Create a guild.
public Task<Guild> CreateGuildAsync(CreateGuildRequest data, RequestOptions? options = null)
Parameters
dataCreateGuildRequestoptionsRequestOptions
Returns
Remarks
User account only.
CreateGuildChannelAsync(ulong, CreateGuildChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<Channel> CreateGuildChannelAsync(ulong guildId, CreateGuildChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateGuildChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateInviteAsync(ulong, CreateInviteRequest, RequestOptions?)
Create invite for the guild channel.
public Task<Invite> CreateInviteAsync(ulong channelId, CreateInviteRequest data, RequestOptions? options = null)
Parameters
channelIdulongdataCreateInviteRequestoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and CreateInstantInvite.
CreateLinkChannelAsync(ulong, CreateLinkChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<LinkChannel> CreateLinkChannelAsync(ulong guildId, CreateLinkChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateLinkChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateMediaChannelAsync(ulong, CreateMediaChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<MediaChannel> CreateMediaChannelAsync(ulong guildId, CreateMediaChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateMediaChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateMessageThreadAsync(ulong, ulong, CreatePublicThreadRequest, RequestOptions?)
Create a thread from a message
public Task<ThreadChannel> CreateMessageThreadAsync(ulong channelId, ulong messageId, CreatePublicThreadRequest req, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongreqCreatePublicThreadRequestoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and CreatePublicThreads.
CreateNewsChannelAsync(ulong, CreateNewsChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<NewsChannel> CreateNewsChannelAsync(ulong guildId, CreateNewsChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateNewsChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreatePostAsync(ulong, CreatePostRequest, RequestOptions?)
Create a new post in a forum channel.
public Task<ThreadChannel> CreatePostAsync(ulong channelId, CreatePostRequest req, RequestOptions? options = null)
Parameters
channelIdulongreqCreatePostRequestoptionsRequestOptions
Returns
Remarks
Requires SendMessages.
CreatePrivateThreadAsync(ulong, CreatePrivateThreadRequest, RequestOptions?)
Create a private thread.
public Task<ThreadChannel> CreatePrivateThreadAsync(ulong channelId, CreatePrivateThreadRequest req, RequestOptions? options = null)
Parameters
channelIdulongreqCreatePrivateThreadRequestoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and CreatePrivateThreads.
CreatePublicThreadAsync(ulong, CreatePublicThreadRequest, RequestOptions?)
Create a public thread.
public Task<ThreadChannel> CreatePublicThreadAsync(ulong channelId, CreatePublicThreadRequest req, RequestOptions? options = null)
Parameters
channelIdulongreqCreatePublicThreadRequestoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and CreatePublicThreads.
CreateRoleAsync(ulong, CreateGuildRoleRequest, RequestOptions?)
Create a role in the guild.
public Task<Role> CreateRoleAsync(ulong guildId, CreateGuildRoleRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateGuildRoleRequestoptionsRequestOptions
Returns
Remarks
Requires ManageRoles.
CreateStickerAsync(ulong, CreateGuildStickerRequest, RequestOptions?)
Create stickers for a guild.
public Task<GuildSticker> CreateStickerAsync(ulong guildId, CreateGuildStickerRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateGuildStickerRequestoptionsRequestOptions
Returns
Remarks
Requires either CreateExpressions or ManageExpressions.
CreateStickerBulkAsync(ulong, BulkCreateGuildStickersRequest, RequestOptions?)
Create multiple stickers for a guild.
public Task<GuildStickerBulkCreateJson> CreateStickerBulkAsync(ulong guildId, BulkCreateGuildStickersRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataBulkCreateGuildStickersRequestoptionsRequestOptions
Returns
- Task<GuildStickerBulkCreateJson>
Fluxer.Net.GuildStickerBulkCreateJson
Remarks
Requires either CreateExpressions or ManageExpressions.
CreateTextChannelAsync(ulong, CreateTextChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<TextChannel> CreateTextChannelAsync(ulong guildId, CreateTextChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateTextChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateVoiceChannelAsync(ulong, CreateVoiceChannelRequest, RequestOptions?)
Create a channel in the guild.
public Task<VoiceChannel> CreateVoiceChannelAsync(ulong guildId, CreateVoiceChannelRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataCreateVoiceChannelRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannels.
CreateWebhookAsync(ulong, string, string?, RequestOptions?)
Create a webhook for the guild channel.
public Task<Webhook> CreateWebhookAsync(ulong channelId, string name, string? avatar = null, RequestOptions? options = null)
Parameters
channelIdulongnamestringavatarstringoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and ManageWebhooks.
CrosspostMessageAsync(ulong, ulong, RequestOptions?)
Crosspost a message.
public Task CrosspostMessageAsync(ulong channelId, ulong messageId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongoptionsRequestOptions
Returns
DeleteAttachmentAsync(string, RequestOptions?)
Delete an attachment.
public Task DeleteAttachmentAsync(string uploadFilename, RequestOptions? options = null)
Parameters
uploadFilenamestringoptionsRequestOptions
Returns
DeleteChannelAsync(ulong, RequestOptions?)
Delete a channel.
public Task DeleteChannelAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageChannel for guild channels.
DeleteCurrentUserChannelPinAsync(ulong, RequestOptions?)
public Task DeleteCurrentUserChannelPinAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
DeleteCurrentUserFavoriteMediaAsync(ulong, RequestOptions?)
Delete your favorite media.
public Task DeleteCurrentUserFavoriteMediaAsync(ulong mediaId, RequestOptions? options = null)
Parameters
mediaIdulongoptionsRequestOptions
Returns
DeleteCurrentUserMentionAsync(ulong, RequestOptions?)
Delete current user mentioned notifications.
public Task DeleteCurrentUserMentionAsync(ulong messageId, RequestOptions? options = null)
Parameters
messageIdulongoptionsRequestOptions
Returns
Remarks
User account only.
DeleteCurrentUserMfaWebauthnCredentialAsync(ulong, RequestOptions?)
public Task DeleteCurrentUserMfaWebauthnCredentialAsync(ulong credentialId, RequestOptions? options = null)
Parameters
credentialIdulongoptionsRequestOptions
Returns
DeleteCurrentUserPhoneAsync<TRequest>(TRequest, RequestOptions?)
Remove phone number for current user.
public Task DeleteCurrentUserPhoneAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
DeleteCurrentUserPushSubscriptionAsync(ulong, RequestOptions?)
public Task DeleteCurrentUserPushSubscriptionAsync(ulong subscriptionId, RequestOptions? options = null)
Parameters
subscriptionIdulongoptionsRequestOptions
Returns
DeleteCurrentUserRelationshipAsync(ulong, RequestOptions?)
public Task DeleteCurrentUserRelationshipAsync(ulong userId, RequestOptions? options = null)
Parameters
userIdulongoptionsRequestOptions
Returns
DeleteCurrentUserSavedMessageAsync(ulong, RequestOptions?)
public Task DeleteCurrentUserSavedMessageAsync(ulong messageId, RequestOptions? options = null)
Parameters
messageIdulongoptionsRequestOptions
Returns
DeleteEmojiAsync(ulong, ulong, RequestOptions?)
Delete an emoji in the guild.
public Task DeleteEmojiAsync(ulong guildId, ulong emojiId, RequestOptions? options = null)
Parameters
guildIdulongemojiIdulongoptionsRequestOptions
Returns
Remarks
Requires either CreateExpressions or ManageExpressions.
DeleteForumTagAsync(ulong, ulong, RequestOptions?)
Delete a forum tag.
public Task<ForumChannel> DeleteForumTagAsync(ulong channelId, ulong tagId, RequestOptions? options = null)
Parameters
channelIdulongtagIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageChannel.
DeleteGuildAsync(ulong, DeleteGuildRequest, RequestOptions?)
Delete a guild that you own.
public Task DeleteGuildAsync(ulong guildId, DeleteGuildRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataDeleteGuildRequestoptionsRequestOptions
Returns
DeleteInviteAsync(string, RequestOptions?)
Delete an invite.
public Task DeleteInviteAsync(string inviteCode, RequestOptions? options = null)
Parameters
inviteCodestringoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and ManageChannel.
DeleteMessageAsync(ulong, ulong, RequestOptions?)
Delete a message in a channel.
public Task DeleteMessageAsync(ulong channelId, ulong messageId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and ReadMessageHistory in a guild channel.
ManageMessages for other user message.
DeleteMessageAttachmentAsync(ulong, ulong, ulong, RequestOptions?)
Delete a attachment on a message.
public Task DeleteMessageAttachmentAsync(ulong channelId, ulong messageId, ulong attachmentId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongattachmentIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and ReadMessageHistory in a guild channel.
DeleteRoleAsync(ulong, ulong, RequestOptions?)
Delete a role in the guild.
public Task DeleteRoleAsync(ulong guildId, ulong roleId, RequestOptions? options = null)
Parameters
guildIdulongroleIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageRoles.
DeleteStickerAsync(ulong, ulong, RequestOptions?)
Delete a sticker in the guild.
public Task DeleteStickerAsync(ulong guildId, ulong stickerId, RequestOptions? options = null)
Parameters
guildIdulongstickerIdulongoptionsRequestOptions
Returns
Remarks
Requires either CreateExpressions or ManageExpressions.
DeleteWebhookAsync(ulong, RequestOptions?)
Delete webhook in a guild channel.
public Task DeleteWebhookAsync(ulong webhookId, RequestOptions? options = null)
Parameters
webhookIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageWebhooks.
DeleteWebhookMessageAsync(ulong, string, ulong, RequestOptions?)
Delete a webhook message using the webhook token.
public Task DeleteWebhookMessageAsync(ulong webhookId, string token, ulong messageId, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringmessageIdulongoptionsRequestOptions
Returns
DeleteWebhookWithTokenAsync(ulong, string, RequestOptions?)
Delete webhook using the webhook token.
public Task DeleteWebhookWithTokenAsync(ulong webhookId, string token, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringoptionsRequestOptions
Returns
EditMessageAsync(ulong, ulong, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Modify your message in a channel
public Task<Message> EditMessageAsync(ulong channelId, ulong messageId, string? content = null, List<EmbedRequest>? embeds = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongcontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
Remarks
Requires ViewChannel and ReadMessageHistory in a guild channel.
EditWebhookMessageAsync(ulong, string, ulong, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Modify a webhook message using the webhook token.
public Task<Message> EditWebhookMessageAsync(ulong webhookId, string token, ulong messageId, string? content = null, List<EmbedRequest>? embeds = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringmessageIdulongcontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
ExchangeOAuthRefreshTokenAsync(ulong, string, string, RequestOptions?)
Get new access token from refresh token.
public Task<FluxerOAuthRefreshToken> ExchangeOAuthRefreshTokenAsync(ulong clientId, string clientSecret, string refreshToken, RequestOptions? options = null)
Parameters
clientIdulongclientSecretstringrefreshTokenstringoptionsRequestOptions
Returns
ExecuteWebhookAsync(ulong, string, string?, List<EmbedRequest>?, string?, string?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Send message using the webhook token in a guild channel.
public Task ExecuteWebhookAsync(ulong webhookId, string token, string? content = null, List<EmbedRequest>? embeds = null, string? username = null, string? avatarUrl = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, bool? tts = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringcontentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
ExecuteWebhookWaitAsync(ulong, string, string?, List<EmbedRequest>?, string?, string?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Send message using the webhook token in a guild channel and wait for response message.
public Task<Message> ExecuteWebhookWaitAsync(ulong webhookId, string token, string? content = null, List<EmbedRequest>? embeds = null, string? username = null, string? avatarUrl = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, bool? tts = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringcontentstringembedsList<EmbedRequest>usernamestringavatarUrlstringreferenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
FollowChannelAsync(ulong, ulong, RequestOptions?)
Follow a news channel.
public Task FollowChannelAsync(ulong channelId, ulong newsChannelId, RequestOptions? options = null)
Parameters
channelIdulongnewsChannelIdulongoptionsRequestOptions
Returns
ForgotPasswordAsync<TRequest>(TRequest)
Request a password reset for the user account.
public Task ForgotPasswordAsync<TRequest>(TRequest data)
Parameters
dataTRequest
Returns
Type Parameters
TRequest
GetAuditLogAsync(ulong, GuildAuditLogListRequest, RequestOptions?)
Search audit logs in the guild.
public Task<AuditLogListJson> GetAuditLogAsync(ulong guildId, GuildAuditLogListRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataGuildAuditLogListRequestoptionsRequestOptions
Returns
- Task<AuditLogListJson>
Fluxer.Net.AuditLogListJson
Remarks
Requires ViewAuditLog.
GetBansAsync(ulong, RequestOptions?)
Get bans for a guild.
public Task<IEnumerable<GuildBan>> GetBansAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<GuildBan>>
List of GuildBan
Remarks
Requires BanMembers.
GetChannelAsync(ulong, RequestOptions?)
Get a channel.
public Task<Channel?> GetChannelAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel for guild channels.
GetChannelInvitesAsync(ulong, RequestOptions?)
Get invites for a guild channel.
public Task<IEnumerable<Invite>> GetChannelInvitesAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<Invite>>
List of Invite
Remarks
Requires ViewChannel and ManageChannel.
GetChannelRtcRegionsAsync(ulong, RequestOptions?)
Get voice regions for a channel.
public Task<IEnumerable<RtcRegion>> GetChannelRtcRegionsAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<RtcRegion>>
List of RtcRegion
Remarks
Requires ViewChannel for guild channels.
GetChannelWebhooksAsync(ulong, RequestOptions?)
Get webhooks for a guild channel.
public Task<IEnumerable<Webhook>> GetChannelWebhooksAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<Webhook>>
List of Webhook
Remarks
Requires ViewChannel and ManageWebhooks.
GetChannelsAsync(ulong, RequestOptions?)
Get all channels in the guild.
public Task<IEnumerable<Channel>> GetChannelsAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<Channel>>
List of Channel
Remarks
Requires ViewChannel.
GetCurrentApplicationAsync(RequestOptions?)
Gets the current application data.
public Task<CurrentApplication> GetCurrentApplicationAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
GetCurrentMemberAsync(ulong, RequestOptions?)
Get current member for a guild.
public Task<GuildMember?> GetCurrentMemberAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
GetCurrentUserAsync(RequestOptions?)
Get the current user.
public Task<CurrentUser> GetCurrentUserAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
GetCurrentUserChannelsAsync<TResponse>(RequestOptions?)
public Task<TResponse> GetCurrentUserChannelsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserFavoriteMediaAsync(RequestOptions?)
Get all your favorite media.
public Task<IEnumerable<FavoriteMedia>> GetCurrentUserFavoriteMediaAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<IEnumerable<FavoriteMedia>>
List of FavoriteMedia
GetCurrentUserFavoriteMediaAsync(ulong, RequestOptions?)
Get your favorite media.
public Task<FavoriteMedia> GetCurrentUserFavoriteMediaAsync(ulong mediaId, RequestOptions? options = null)
Parameters
mediaIdulongoptionsRequestOptions
Returns
GetCurrentUserGuildsAsync(RequestOptions?)
Get all guilds for the current user.
public Task<IEnumerable<Guild>> GetCurrentUserGuildsAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<IEnumerable<Guild>>
List of Guild
GetCurrentUserHarvestAsync<TResponse>(string, RequestOptions?)
public Task<TResponse> GetCurrentUserHarvestAsync<TResponse>(string harvestId, RequestOptions? options = null)
Parameters
harvestIdstringoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserHarvestDownloadAsync<TResponse>(string, RequestOptions?)
public Task<TResponse> GetCurrentUserHarvestDownloadAsync<TResponse>(string harvestId, RequestOptions? options = null)
Parameters
harvestIdstringoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserHarvestLatestAsync<TResponse>(RequestOptions?)
public Task<TResponse> GetCurrentUserHarvestLatestAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserMentionsAsync<TResponse>(RequestOptions?)
Get current user mention notifications.
public Task<TResponse> GetCurrentUserMentionsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
Remarks
User account only.
GetCurrentUserMfaWebauthnCredentialsAsync<TResponse>(RequestOptions?)
Get webauthn MFA for current user.
public Task<TResponse> GetCurrentUserMfaWebauthnCredentialsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
Remarks
User account only.
GetCurrentUserNoteAsync<TResponse>(ulong, RequestOptions?)
Get current user note for target user.
public Task<TResponse> GetCurrentUserNoteAsync<TResponse>(ulong targetId, RequestOptions? options = null)
Parameters
targetIdulongoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserNotesAsync<TResponse>(RequestOptions?)
Get all current user notes.
public Task<TResponse> GetCurrentUserNotesAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserPushSubscriptionsAsync<TResponse>(RequestOptions?)
public Task<TResponse> GetCurrentUserPushSubscriptionsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserRelationshipsAsync<TResponse>(RequestOptions?)
public Task<TResponse> GetCurrentUserRelationshipsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserSavedMessagesAsync<TResponse>(RequestOptions?)
public Task<TResponse> GetCurrentUserSavedMessagesAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
GetCurrentUserSettingsAsync(RequestOptions?)
Get current user settings.
public Task<UserSettings> GetCurrentUserSettingsAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
Remarks
User account only.
GetEmojiAsync(ulong, RequestOptions?)
Get a custom emoji.
public Task<Emoji?> GetEmojiAsync(ulong emojiId, RequestOptions? options = null)
Parameters
emojiIdulongoptionsRequestOptions
Returns
GetEmojisAsync(ulong, RequestOptions?)
Get all emojis in the guild.
public Task<IEnumerable<GuildEmoji>> GetEmojisAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<GuildEmoji>>
List of GuildEmoji
Remarks
Requires either CreateExpressions or ManageExpressions.
GetGuildAsync(ulong, RequestOptions?)
Get a guild that the current user is in.
public Task<Guild?> GetGuildAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
GetGuildInvitesAsync(ulong, RequestOptions?)
Get all invites for the guild.
public Task<IEnumerable<Invite>> GetGuildInvitesAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<Invite>>
List of Invite
Remarks
Requires ManageChannel.
GetGuildVanityUrlAsync(ulong, RequestOptions?)
Get vanity url for a guild.
public Task<GuildVanityUrl> GetGuildVanityUrlAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
GetGuildWebhooksAsync(ulong, RequestOptions?)
Get all webhooks for the guild.
public Task<IEnumerable<Webhook>> GetGuildWebhooksAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<Webhook>>
List of Webhook
Remarks
Requires ManageWebhooks.
GetInstanceAsync(RequestOptions?)
Get info and config for the Fluxer instance, useful for self-hosted.
public Task<Instance?> GetInstanceAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
GetInviteAsync(string, RequestOptions?)
Get invite info from invite code.
public Task<PartialInvite?> GetInviteAsync(string inviteCode, RequestOptions? options = null)
Parameters
inviteCodestringoptionsRequestOptions
Returns
GetKlipyFeaturedAsync(RequestOptions?)
Get featured klipy gifs.
public Task<GifFeaturedJson> GetKlipyFeaturedAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<GifFeaturedJson>
Fluxer.Net.GifFeaturedJson
GetKlipyTrendingGifsAsync(RequestOptions?)
Get trending klipy gifs.
public Task<IEnumerable<Gif>> GetKlipyTrendingGifsAsync(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<IEnumerable<Gif>>
List of Gif
GetMemberAsync(ulong, ulong, RequestOptions?)
Get a member in a guild.
public Task<GuildMember?> GetMemberAsync(ulong guildId, ulong userId, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongoptionsRequestOptions
Returns
GetMembersAsync(ulong, int, ulong?, RestClientQueryParams?, RequestOptions?)
Get a list of members for a guild, default and maximum 1000.
public Task<IEnumerable<GuildMember>> GetMembersAsync(ulong guildId, int limit = 1000, ulong? afterId = null, RestClientQueryParams? queryParams = null, RequestOptions? options = null)
Parameters
guildIdulonglimitintafterIdulong?queryParamsRestClientQueryParamsoptionsRequestOptions
Returns
- Task<IEnumerable<GuildMember>>
List of GuildMember
GetMessageAsync(ulong, ulong, RequestOptions?)
Get a message in a channel.
public Task<Message?> GetMessageAsync(ulong channelId, ulong messageId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and ReadMessageHistory for guild channels.
GetMessagesAsync(ulong, int, ulong?, ulong?, ulong?, RestClientQueryParams?, RequestOptions?)
Get messages in a channel.
public Task<IEnumerable<Message>> GetMessagesAsync(ulong channelId, int limit = 100, ulong? beforeId = null, ulong? afterId = null, ulong? aroundId = null, RestClientQueryParams? queryParams = null, RequestOptions? options = null)
Parameters
channelIdulonglimitintbeforeIdulong?afterIdulong?aroundIdulong?queryParamsRestClientQueryParamsoptionsRequestOptions
Returns
- Task<IEnumerable<Message>>
List of Message
Remarks
Requires ReadMessageHistory for guild channels.
GetOAuthConnectionsAsync(string, RequestOptions?)
Get user connections from access token.
public Task<IEnumerable<UserConnection>> GetOAuthConnectionsAsync(string accessToken, RequestOptions? options = null)
Parameters
accessTokenstringoptionsRequestOptions
Returns
- Task<IEnumerable<UserConnection>>
List of UserConnection
GetOAuthGuildsAsync(string, RequestOptions?)
Get user guilds from access token.
public Task<IEnumerable<Guild>> GetOAuthGuildsAsync(string accessToken, RequestOptions? options = null)
Parameters
accessTokenstringoptionsRequestOptions
Returns
- Task<IEnumerable<Guild>>
List of Guild
GetOAuthTokenAsync(string, RequestOptions?)
Get oauth token from access token.
public Task<FluxerOAuthToken?> GetOAuthTokenAsync(string accessToken, RequestOptions? options = null)
Parameters
accessTokenstringoptionsRequestOptions
Returns
GetOAuthUserAsync(string, RequestOptions?)
Get user from access token.
public Task<FluxerOAuthUser?> GetOAuthUserAsync(string accessToken, RequestOptions? options = null)
Parameters
accessTokenstringoptionsRequestOptions
Returns
GetOAuthValidTokenAsync(ulong, string, string, RequestOptions?)
Check if oauth token is valid.
public Task<FluxerOAuthValidToken?> GetOAuthValidTokenAsync(ulong clientId, string clientSecret, string accessToken, RequestOptions? options = null)
Parameters
clientIdulongclientSecretstringaccessTokenstringoptionsRequestOptions
Returns
GetPinnedMessagesAsync(ulong, ChannelPinsQuery?, RequestOptions?)
Get pinned messages in a channel.
public Task<ChannelPins> GetPinnedMessagesAsync(ulong channelId, ChannelPinsQuery? query = null, RequestOptions? options = null)
Parameters
channelIdulongqueryChannelPinsQueryoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and ReadMessageHistory in a guild channel.
GetPublicAppAsync(ulong, RequestOptions?)
Get a public app.
public Task<Application?> GetPublicAppAsync(ulong id, RequestOptions? options = null)
Parameters
idulongoptionsRequestOptions
Returns
GetReactionsForEmojiAsync(ulong, ulong, string, RequestOptions?)
Get reaction users for a certain emoji on a message.
public Task<IEnumerable<User>> GetReactionsForEmojiAsync(ulong channelId, ulong messageId, string emoji, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongemojistringoptionsRequestOptions
Returns
- Task<IEnumerable<User>>
List of User
Remarks
Requires ViewChannel and ReadMessageHistory in a guild channel.
GetSessionsAsync(RestClientQueryParams?)
Get all sessions for the user account.
public Task<IEnumerable<AuthSession>> GetSessionsAsync(RestClientQueryParams? queryParams)
Parameters
queryParamsRestClientQueryParams
Returns
- Task<IEnumerable<AuthSession>>
List of AuthSession
GetStickerAsync(ulong, RequestOptions?)
Get a custom sticker.
public Task<Sticker?> GetStickerAsync(ulong stickerId, RequestOptions? options = null)
Parameters
stickerIdulongoptionsRequestOptions
Returns
GetStickersAsync(ulong, RequestOptions?)
Get all stickers in the guild.
public Task<IEnumerable<GuildSticker>> GetStickersAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
- Task<IEnumerable<GuildSticker>>
List of GuildSticker
Remarks
Requires either CreateExpressions or ManageExpressions.
GetThreadChannelAsync(ulong, RequestOptions?)
Get a channel.
public Task<ThreadChannel?> GetThreadChannelAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel for guild channels.
GetUserAsync(ulong, RequestOptions?)
Get a user.
public Task<User?> GetUserAsync(ulong userId, RequestOptions? options = null)
Parameters
userIdulongoptionsRequestOptions
Returns
GetUserProfileAsync(ulong, ulong?, bool, bool, RequestOptions?)
Get a user's profile.
public Task<UserProfileResponse?> GetUserProfileAsync(ulong targetId, ulong? guildId = null, bool mutualFriends = false, bool mutualGuilds = false, RequestOptions? options = null)
Parameters
targetIdulongguildIdulong?mutualFriendsboolmutualGuildsbooloptionsRequestOptions
Returns
Remarks
Requires mutual friend or guild, this may also fail if hidden profile is enabled.
GetVoiceEligibilityAsync(ulong, RequestOptions?)
Get if you can call a voice channel/group/dm.
public Task<CallEligibility> GetVoiceEligibilityAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
GetWebhookAsync(ulong, RequestOptions?)
Get webhook in a guild channel.
public Task<Webhook?> GetWebhookAsync(ulong webhookId, RequestOptions? options = null)
Parameters
webhookIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageWebhooks.
GetWebhookWithTokenAsync(ulong, string, RequestOptions?)
Get webhook using the webhook token.
public Task<Webhook?> GetWebhookWithTokenAsync(ulong webhookId, string token, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringoptionsRequestOptions
Returns
JoinGuildAsync(string, RequestOptions?)
Join a guild by invite code.
public Task<PartialInvite> JoinGuildAsync(string inviteCode, RequestOptions? options = null)
Parameters
inviteCodestringoptionsRequestOptions
Returns
Remarks
User account only.
JoinThreadAsync(ulong, RequestOptions?)
Join a thread.
public Task JoinThreadAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel.
KickMemberAsync(ulong, ulong, string?, RequestOptions?)
Kick a member from the guild.
public Task KickMemberAsync(ulong guildId, ulong userId, string? reason = null, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongreasonstringoptionsRequestOptions
Returns
Remarks
Requires KickMembers.
LeaveGuildAsync(ulong, RequestOptions?)
Leave a guild for the current user.
public Task LeaveGuildAsync(ulong guildId, RequestOptions? options = null)
Parameters
guildIdulongoptionsRequestOptions
Returns
LeaveThreadAsync(ulong, RequestOptions?)
Leave a thread.
public Task LeaveThreadAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel.
LoginAsync(LoginRequestJson, RequestOptions?)
Login with a user account.
public Task<Login> LoginAsync(LoginRequestJson data, RequestOptions? options = null)
Parameters
dataLoginRequestJsonoptionsRequestOptions
Returns
LoginMfaSmsAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Login with a SMS code.
public Task LoginMfaSmsAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequestTResponse
LoginMfaTotpAsync<TRequest, TResponse>(TRequest)
Login with a user account that has MFA.
public Task LoginMfaTotpAsync<TRequest, TResponse>(TRequest data)
Parameters
dataTRequest
Returns
Type Parameters
TRequestTResponse
LogoutAsync()
Logout of the current session/auth.
public Task LogoutAsync()
Returns
LogoutSessionsAsync<TRequest>(TRequest)
Logout a specific session for the user account.
public Task LogoutSessionsAsync<TRequest>(TRequest data)
Parameters
dataTRequest
Returns
Type Parameters
TRequest
PatchCurrentUserFavoriteMediaAsync<TRequest>(ulong, TRequest, RequestOptions?)
Update your favorite media.
public Task<FavoriteMedia> PatchCurrentUserFavoriteMediaAsync<TRequest>(ulong mediaId, TRequest data, RequestOptions? options = null)
Parameters
mediaIdulongdataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
PatchCurrentUserGuildSettingsAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
public Task<TResponse> PatchCurrentUserGuildSettingsAsync<TRequest, TResponse>(ulong guildId, TRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PatchCurrentUserGuildSettingsSelfAsync<TRequest, TResponse>(TRequest, RequestOptions?)
public Task<TResponse> PatchCurrentUserGuildSettingsSelfAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PatchCurrentUserMfaWebauthnCredentialAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
Update webauthn MFA for current user.
public Task<TResponse> PatchCurrentUserMfaWebauthnCredentialAsync<TRequest, TResponse>(ulong credentialId, TRequest data, RequestOptions? options = null)
Parameters
credentialIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
User account only.
PinMessageAsync(ulong, ulong, RequestOptions?)
Pin a message in a channel.
public Task PinMessageAsync(ulong channelId, ulong messageId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel, ReadMessageHistory and PinMessages in a guild channel.
PostAuthAuthorizeIpAsync<TRequest>(TRequest)
Authorize and IP for the user account.
public Task PostAuthAuthorizeIpAsync<TRequest>(TRequest data)
Parameters
dataTRequest
Returns
Type Parameters
TRequest
PostAuthLoginMfaWebauthnAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Setup webauth for the user account.
public Task<TResponse> PostAuthLoginMfaWebauthnAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostAuthLoginMfaWebauthnAuthenticationOptionsAsync<TResponse>(RequestOptions?)
Setup webauth for the user account.
public Task<TResponse> PostAuthLoginMfaWebauthnAuthenticationOptionsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
PostAuthWebauthnAuthenticateAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Setup webauth for the user account.
public Task<TResponse> PostAuthWebauthnAuthenticateAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostAuthWebauthnAuthenticationOptionsAsync<TResponse>()
Setup webauth for the user account.
public Task<TResponse> PostAuthWebauthnAuthenticationOptionsAsync<TResponse>()
Returns
- Task<TResponse>
Type Parameters
TResponse
PostCurrentUserChannelAsync<TRequest, TResponse>(TRequest)
public Task<TResponse> PostCurrentUserChannelAsync<TRequest, TResponse>(TRequest data)
Parameters
dataTRequest
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostCurrentUserDeleteAsync<TRequest>(TRequest, RequestOptions?)
public Task PostCurrentUserDeleteAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
PostCurrentUserDisableAsync<TRequest>(TRequest, RequestOptions?)
public Task PostCurrentUserDisableAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
PostCurrentUserFavoriteMediaAsync<TRequest>(TRequest, RequestOptions?)
Add a favorite media.
public Task<FavoriteMedia> PostCurrentUserFavoriteMediaAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
PostCurrentUserHarvestAsync<TRequest, TResponse>(TRequest, RequestOptions?)
public Task<TResponse> PostCurrentUserHarvestAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostCurrentUserMessagesDeleteAsync<TRequest>(TRequest, RequestOptions?)
public Task PostCurrentUserMessagesDeleteAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
PostCurrentUserMfaBackupCodesAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Get/create MFA backup codes for current user.
public Task<TResponse> PostCurrentUserMfaBackupCodesAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
User account only.
PostCurrentUserMfaSmsDisableAsync<TRequest>(TRequest, RequestOptions?)
Disable MFA SMS for current user.
public Task PostCurrentUserMfaSmsDisableAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
PostCurrentUserMfaSmsEnableAsync<TRequest>(TRequest, RequestOptions?)
Enable MFA SMS for current user.
public Task PostCurrentUserMfaSmsEnableAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
PostCurrentUserMfaTotpDisableAsync<TRequest>(TRequest, RequestOptions?)
Disable MFA for current user.
public Task PostCurrentUserMfaTotpDisableAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
PostCurrentUserMfaTotpEnableAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Enable MFA for current user.
public Task<TResponse> PostCurrentUserMfaTotpEnableAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
User account only.
PostCurrentUserMfaWebauthnCredentialsAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Set webauthn MFA for current user.
public Task<TResponse> PostCurrentUserMfaWebauthnCredentialsAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
User account only.
PostCurrentUserMfaWebauthnCredentialsRegistrationOptionsAsync<TResponse>(RequestOptions?)
Register webauthn for current user.
public Task<TResponse> PostCurrentUserMfaWebauthnCredentialsRegistrationOptionsAsync<TResponse>(RequestOptions? options = null)
Parameters
optionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TResponse
Remarks
User account only.
PostCurrentUserPhoneAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Set phone number for current user.
public Task<TResponse> PostCurrentUserPhoneAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
User account only.
PostCurrentUserPhoneSendVerificationAsync<TRequest>(TRequest, RequestOptions?)
Send phone verification for current user.
public Task PostCurrentUserPhoneSendVerificationAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
PostCurrentUserPhoneVerifyAsync<TRequest, TResponse>(TRequest, RequestOptions?)
Verify phone verification for current user.
public Task<TResponse> PostCurrentUserPhoneVerifyAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
User account only.
PostCurrentUserPreloadMessagesAsync<TRequest>(TRequest, RequestOptions?)
public Task PostCurrentUserPreloadMessagesAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
PostCurrentUserPushSubscribeAsync<TRequest, TResponse>(TRequest, RequestOptions?)
public Task<TResponse> PostCurrentUserPushSubscribeAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostCurrentUserRelationshipAsync<TRequest, TResponse>(TRequest, RequestOptions?)
public Task<TResponse> PostCurrentUserRelationshipAsync<TRequest, TResponse>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostCurrentUserRelationshipWithUserAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
public Task<TResponse> PostCurrentUserRelationshipWithUserAsync<TRequest, TResponse>(ulong userId, TRequest data, RequestOptions? options = null)
Parameters
userIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostCurrentUserSavedMessageAsync<TRequest, TResponse>(TRequest)
public Task<TResponse> PostCurrentUserSavedMessageAsync<TRequest, TResponse>(TRequest data)
Parameters
dataTRequest
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PostReadStatesAckBulkAsync<TRequest>(TRequest, RequestOptions?)
Clear read message stats for guilds or channels.
public Task PostReadStatesAckBulkAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
PutCurrentUserChannelPinAsync(ulong, RequestOptions?)
public Task PutCurrentUserChannelPinAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
PutCurrentUserNoteAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
Add/update current user note for target user.
public Task<TResponse> PutCurrentUserNoteAsync<TRequest, TResponse>(ulong targetId, TRequest data, RequestOptions? options = null)
Parameters
targetIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
PutCurrentUserRelationshipAsync<TRequest>(ulong, TRequest, RequestOptions?)
public Task PutCurrentUserRelationshipAsync<TRequest>(ulong userId, TRequest data, RequestOptions? options = null)
Parameters
userIdulongdataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
RegisterAsync<TRequest>(TRequest, RequestOptions?)
Create a user account
public Task RegisterAsync<TRequest>(TRequest data, RequestOptions? options = null)
Parameters
dataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
RemoveAllReactionsAsync(ulong, ulong, RequestOptions?)
Remove all reactions on a message.
public Task RemoveAllReactionsAsync(ulong channelId, ulong messageId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel, ReadMessageHistory and ManageMessages in a guild channel.
RemoveAllReactionsForEmojiAsync(ulong, ulong, string, RequestOptions?)
Remove all reactions for a specific emoji on a message.
public Task RemoveAllReactionsForEmojiAsync(ulong channelId, ulong messageId, string emoji, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongemojistringoptionsRequestOptions
Returns
Remarks
Requires ViewChannel, ReadMessageHistory and ManageMessages in a guild channel.
RemoveMemberRoleAsync(ulong, ulong, ulong, RequestOptions?)
Remove role from a member in the guild.
public Task RemoveMemberRoleAsync(ulong guildId, ulong userId, ulong roleId, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongroleIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageRoles.
RemoveOwnReactionAsync(ulong, ulong, string, RequestOptions?)
Remove a reaction on a message.
public Task RemoveOwnReactionAsync(ulong channelId, ulong messageId, string emoji, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongemojistringoptionsRequestOptions
Returns
Remarks
Requires ViewChannel in a guild channel.
RemoveRecipientAsync(ulong, ulong, RequestOptions?)
Remove a user from the group channel.
public Task RemoveRecipientAsync(ulong channelId, ulong userId, RequestOptions? options = null)
Parameters
channelIdulonguserIdulongoptionsRequestOptions
Returns
Remarks
User account only.
RemoveThreadMemberAsync(ulong, ulong, RequestOptions?)
Remove a member from a thread.
public Task RemoveThreadMemberAsync(ulong channelId, ulong userId, RequestOptions? options = null)
Parameters
channelIdulonguserIdulongoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
RemoveUserReactionAsync(ulong, ulong, string, ulong, RequestOptions?)
Remove a user's reaction on a message.
public Task RemoveUserReactionAsync(ulong channelId, ulong messageId, string emoji, ulong targetId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongemojistringtargetIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel, ReadMessageHistory and ManageMessages in a guild channel.
ResendVerificationEmailAsync()
Send an email verification for the user account.
public Task ResendVerificationEmailAsync()
Returns
ResetPasswordAsync<TRequest>(TRequest)
Reset the password for the user account.
public Task ResetPasswordAsync<TRequest>(TRequest data)
Parameters
dataTRequest
Returns
Type Parameters
TRequest
RevokeOAuthAccessTokenAsync(ulong, string, string, RequestOptions?)
Remove access for access token.
public Task RevokeOAuthAccessTokenAsync(ulong clientId, string clientSecret, string accessToken, RequestOptions? options = null)
Parameters
clientIdulongclientSecretstringaccessTokenstringoptionsRequestOptions
Returns
RevokeOAuthRefreshTokenAsync(ulong, string, string, RequestOptions?)
Remove access for refresh token.
public Task RevokeOAuthRefreshTokenAsync(ulong clientId, string clientSecret, string refreshToken, RequestOptions? options = null)
Parameters
clientIdulongclientSecretstringrefreshTokenstringoptionsRequestOptions
Returns
RingCallAsync(ulong, ulong[], RequestOptions?)
Voice call users.
public Task RingCallAsync(ulong channelId, ulong[] recipients, RequestOptions? options = null)
Parameters
channelIdulongrecipientsulong[]optionsRequestOptions
Returns
Remarks
User account only.
SearchChannelAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
Search messages in a channel.
public Task<TResponse> SearchChannelAsync<TRequest, TResponse>(ulong channelId, TRequest data, RequestOptions? options = null)
Parameters
channelIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
Remarks
Not implemented or tested properly.
SearchChannelMessagesAsync(ulong, GlobalSearchMessagesRequest, RequestOptions?)
Search messages globally using either guild or channel.
public Task<GlobalSearch> SearchChannelMessagesAsync(ulong channelId, GlobalSearchMessagesRequest request, RequestOptions? options = null)
Parameters
channelIdulongrequestGlobalSearchMessagesRequestoptionsRequestOptions
Returns
Remarks
Page needs to be 1 and message scope should not be changed when using bots.
SearchGuildAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
Search the guild.
public Task<TResponse> SearchGuildAsync<TRequest, TResponse>(ulong guildId, TRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
SearchGuildChannelMessagesAsync(ulong, ulong, GlobalSearchMessagesRequest, RequestOptions?)
Search messages globally using either guild or channel.
public Task<GlobalSearch> SearchGuildChannelMessagesAsync(ulong guildId, ulong channelId, GlobalSearchMessagesRequest request, RequestOptions? options = null)
Parameters
guildIdulongchannelIdulongrequestGlobalSearchMessagesRequestoptionsRequestOptions
Returns
Remarks
Page needs to be 1 and message scope should not be changed when using bots.
SearchGuildMessagesAsync(ulong, GlobalSearchMessagesRequest, RequestOptions?)
Search messages globally using either guild or channel.
public Task<GlobalSearch> SearchGuildMessagesAsync(ulong guildId, GlobalSearchMessagesRequest request, RequestOptions? options = null)
Parameters
guildIdulongrequestGlobalSearchMessagesRequestoptionsRequestOptions
Returns
Remarks
Page needs to be 1 and message scope should not be changed when using bots.
SearchKlipyAsync(string, RequestOptions?)
Search klipy gifs.
public Task<IEnumerable<Gif>> SearchKlipyAsync(string query, RequestOptions? options = null)
Parameters
querystringoptionsRequestOptions
Returns
- Task<IEnumerable<Gif>>
List of Gif
SendMessageAsync(ulong, string?, List<EmbedRequest>?, MessageReferenceRequest?, AllowedMentionsRequest?, MessageFlag, string?, ulong?, bool?, List<ulong>?, List<AttachmentRequest>?, RequestOptions?)
Send a message in the channel.
public Task<Message> SendMessageAsync(ulong channelId, string? content = null, List<EmbedRequest>? embeds = null, MessageReferenceRequest? reference = null, AllowedMentionsRequest? allowedMentions = null, MessageFlag flags = MessageFlag.None, string? nonce = null, ulong? favoriteMediaId = null, bool? tts = null, List<ulong>? stickerIds = null, List<AttachmentRequest>? attachments = null, RequestOptions? options = null)
Parameters
channelIdulongcontentstringembedsList<EmbedRequest>referenceMessageReferenceRequestallowedMentionsAllowedMentionsRequestflagsMessageFlagnoncestringfavoriteMediaIdulong?ttsbool?stickerIdsList<ulong>attachmentsList<AttachmentRequest>optionsRequestOptions
Returns
Remarks
Requires ViewChannel and SendMessages for guild channels.
SendMfaSmsCodeAsync()
Send a SMS code.
public Task SendMfaSmsCodeAsync()
Returns
SetCustomStatusAsync(UserCustomStatusJson, RequestOptions?)
Set current user status.
public Task<UserSettings> SetCustomStatusAsync(UserCustomStatusJson status, RequestOptions? options = null)
Parameters
statusUserCustomStatusJsonoptionsRequestOptions
Returns
StopRingingAsync(ulong, RequestOptions?)
Stop voice calling user.
public Task StopRingingAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
User account only.
TransferOwnershipAsync(ulong, GuildTransferOwnershipRequest, RequestOptions?)
Change ownership of a guild to another member.
public Task<Guild> TransferOwnershipAsync(ulong guildId, GuildTransferOwnershipRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataGuildTransferOwnershipRequestoptionsRequestOptions
Returns
Remarks
Requires guild ownership and user account only.
TriggerTypingIndicatorAsync(ulong, RequestOptions?)
Send a user typing status for the channel.
public Task TriggerTypingIndicatorAsync(ulong channelId, RequestOptions? options = null)
Parameters
channelIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel in a guild channel.
UnbanMemberAsync(ulong, ulong, RequestOptions?)
Unban a user from the guild.
public Task UnbanMemberAsync(ulong guildId, ulong userId, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongoptionsRequestOptions
Returns
Remarks
Requires BanMembers.
UnpinMessageAsync(ulong, ulong, RequestOptions?)
Remove a pinned message in a channel.
public Task UnpinMessageAsync(ulong channelId, ulong messageId, RequestOptions? options = null)
Parameters
channelIdulongmessageIdulongoptionsRequestOptions
Returns
Remarks
Requires ViewChannel, ReadMessageHistory and PinMessages in a guild channel.
UpdateChannelAsync(ulong, ChannelJson, RequestOptions?)
Modify a channel.
public Task<Channel> UpdateChannelAsync(ulong channelId, ChannelJson channel, RequestOptions? options = null)
Parameters
channelIdulongchannelChannelJsonoptionsRequestOptions
Returns
Remarks
Requires ManageChannel for guild channels.
UpdateChannelPositionsAsync(ulong, IEnumerable<ChannelPositionUpdateRequestItem>, RequestOptions?)
Update channel positions in a guild.
public Task UpdateChannelPositionsAsync(ulong guildId, IEnumerable<ChannelPositionUpdateRequestItem> list, RequestOptions? options = null)
Parameters
guildIdulonglistIEnumerable<ChannelPositionUpdateRequestItem>optionsRequestOptions
Returns
Remarks
Requires ManageChannels.
UpdateCurrentMemberAsync(ulong, GuildMemberJson, RequestOptions?)
Update current member in a guild.
public Task<GuildMember> UpdateCurrentMemberAsync(ulong guildId, GuildMemberJson member, RequestOptions? options = null)
Parameters
guildIdulongmemberGuildMemberJsonoptionsRequestOptions
Returns
Remarks
Requires ChangeNickname to change your nickname.
UpdateCurrentUserAsync(UserJson, RequestOptions?)
Update the current user.
public Task<CurrentUser> UpdateCurrentUserAsync(UserJson user, RequestOptions? options = null)
Parameters
userUserJsonoptionsRequestOptions
Returns
UpdateCurrentUserSettingsAsync<TRequest>(TRequest, RequestOptions?)
Update current user settings.
public Task<UserSettings> UpdateCurrentUserSettingsAsync<TRequest>(TRequest settings, RequestOptions? options = null)
Parameters
settingsTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
User account only.
UpdateEmojiAsync(ulong, ulong, UpdateGuildEmojiRequest, RequestOptions?)
Update an emoji in the guild.
public Task<GuildEmoji> UpdateEmojiAsync(ulong guildId, ulong emojiId, UpdateGuildEmojiRequest data, RequestOptions? options = null)
Parameters
guildIdulongemojiIdulongdataUpdateGuildEmojiRequestoptionsRequestOptions
Returns
Remarks
Requires either CreateExpressions or ManageExpressions.
UpdateForumTagAsync(ulong, ulong, CreateForumTagRequest, RequestOptions?)
Update a forum tag.
public Task<ForumChannel> UpdateForumTagAsync(ulong channelId, ulong tagId, CreateForumTagRequest req, RequestOptions? options = null)
Parameters
channelIdulongtagIdulongreqCreateForumTagRequestoptionsRequestOptions
Returns
Remarks
Requires ManageChannel.
UpdateGuildAsync(ulong, GuildJson, RequestOptions?)
Update a guild that you manage.
public Task<Guild> UpdateGuildAsync(ulong guildId, GuildJson guild, RequestOptions? options = null)
Parameters
guildIdulongguildGuildJsonoptionsRequestOptions
Returns
Remarks
Requires ManageGuild.
UpdateGuildVanityUrlAsync(ulong, UpdateGuildVanityUrlRequest, RequestOptions?)
Update vanity url for a guild.
public Task UpdateGuildVanityUrlAsync(ulong guildId, UpdateGuildVanityUrlRequest data, RequestOptions? options = null)
Parameters
guildIdulongdataUpdateGuildVanityUrlRequestoptionsRequestOptions
Returns
Remarks
Requires ManageGuild.
UpdateMemberAsync(ulong, ulong, GuildMemberJson, RequestOptions?)
Update a member in a guild.
public Task<GuildMember> UpdateMemberAsync(ulong guildId, ulong userId, GuildMemberJson member, RequestOptions? options = null)
Parameters
guildIdulonguserIdulongmemberGuildMemberJsonoptionsRequestOptions
Returns
Remarks
Requires either ManageNicknames, DeafenMembers, ManageRoles, ModerateMembers or MuteMembers depending on property.
UpdateRoleAsync(ulong, ulong, UpdateGuildRoleRequest, RequestOptions?)
Update a role in the guild.
public Task<Role> UpdateRoleAsync(ulong guildId, ulong roleId, UpdateGuildRoleRequest data, RequestOptions? options = null)
Parameters
guildIdulongroleIdulongdataUpdateGuildRoleRequestoptionsRequestOptions
Returns
Remarks
Requires ManageRoles.
UpdateRolePositionsAsync(ulong, IEnumerable<RolePositionItemJson>, RequestOptions?)
Update role positions in the guild.
public Task UpdateRolePositionsAsync(ulong guildId, IEnumerable<RolePositionItemJson> positions, RequestOptions? options = null)
Parameters
guildIdulongpositionsIEnumerable<RolePositionItemJson>optionsRequestOptions
Returns
Remarks
Requires ManageRoles.
UpdateStickerAsync(ulong, ulong, UpdateGuildStickerRequest, RequestOptions?)
Update a sticker in the guild.
public Task<GuildSticker> UpdateStickerAsync(ulong guildId, ulong stickerId, UpdateGuildStickerRequest data, RequestOptions? options = null)
Parameters
guildIdulongstickerIdulongdataUpdateGuildStickerRequestoptionsRequestOptions
Returns
Remarks
Requires either CreateExpressions or ManageExpressions.
UpdateThreadAsync(ulong, UpdateThreadRequest, RequestOptions?)
Update a thread.
public Task<ThreadChannel> UpdateThreadAsync(ulong channelId, UpdateThreadRequest req, RequestOptions? options = null)
Parameters
channelIdulongreqUpdateThreadRequestoptionsRequestOptions
Returns
Remarks
Requires ManageThreads or Thread Owner.
UpdateVoiceRegionAsync(ulong, string?, RequestOptions?)
Update the voice region for a voice channel.
public Task UpdateVoiceRegionAsync(ulong channelId, string? region, RequestOptions? options = null)
Parameters
channelIdulongregionstringoptionsRequestOptions
Returns
Remarks
Requires ViewChannel and UpdateRTCRegion in a guild channel.
UpdateWebhookAsync<TRequest>(ulong, TRequest, RequestOptions?)
Update webhook in a guild channel.
public Task<Webhook> UpdateWebhookAsync<TRequest>(ulong webhookId, TRequest data, RequestOptions? options = null)
Parameters
webhookIdulongdataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
Remarks
Requires ManageWebhooks.
UpdateWebhookWithTokenAsync<TRequest>(ulong, string, TRequest, RequestOptions?)
Update webhook using the webhook token.
public Task<Webhook> UpdateWebhookWithTokenAsync<TRequest>(ulong webhookId, string token, TRequest data, RequestOptions? options = null)
Parameters
webhookIdulongtokenstringdataTRequestoptionsRequestOptions
Returns
Type Parameters
TRequest
UploadAttachmentsAsync<TRequest, TResponse>(ulong, TRequest, RequestOptions?)
Upload multiple attachments to a channel.
public Task<TResponse> UploadAttachmentsAsync<TRequest, TResponse>(ulong channelId, TRequest data, RequestOptions? options = null)
Parameters
channelIdulongdataTRequestoptionsRequestOptions
Returns
- Task<TResponse>
Type Parameters
TRequestTResponse
VerifyEmailAsync<TRequest>(TRequest)
Verify the user account email.
public Task VerifyEmailAsync<TRequest>(TRequest data)
Parameters
dataTRequest
Returns
Type Parameters
TRequest