Optional
params: Partial<AddGuildMemberParams>Optional
options: AxiosRequestConfig<any>Adds a role to a guild member. Requires the MANAGE_ROLES permission. Returns a 204 empty response on success. Fires a Guild Member Update Gateway event.
Optional
options: AxiosRequestConfig<any>Adds another member to a thread. Requires the ability to send messages in the thread. Also requires the thread is not archived. Returns a 204 empty response if the member is successfully added or was already a member of the thread. Fires a Thread Members Update Gateway event.
Optional
options: AxiosRequestConfig<any>Optional
options: AxiosRequestConfig<any>Begin a prune operation. Requires the KICK_MEMBERS permission. Returns an object with one pruned key indicating the number of members that were removed in the prune operation. For large guilds it's recommended to set the compute_prune_count option to false, forcing pruned to null. Fires multiple Guild Member Remove Gateway events.
Optional
params: Partial<BeginGuildPruneParams>Optional
options: AxiosRequestConfig<any>Delete multiple messages in a single request. This endpoint can only be used on guild channels and requires the MANAGE_MESSAGES permission. Returns a 204 empty response on success. Fires a Message Delete Bulk Gateway event.
Optional
params: Partial<BulkDeleteMessageParams>Optional
options: AxiosRequestConfig<any>Takes a list of application commands, overwriting the existing global command list for this application. Returns 200 and a list of application command objects. Commands that do not already exist will count toward daily application command create limits.
Optional
options: AxiosRequestConfig<any>Takes a list of application commands, overwriting the existing command list for this application for the targeted guild. Returns 200 and a list of application command objects.
Optional
params: Partial<BulkOverwriteGuildApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Create a new rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Create Gateway event.
Optional
params: Partial<CreateAutoModerationRuleParams>Optional
options: AxiosRequestConfig<any>Create a new invite object for the channel. Only usable for guild channels. Requires the CREATE_INSTANT_INVITE permission. All JSON parameters for this route are optional, however the request body is not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object. Fires an Invite Create Gateway event.
Optional
params: Partial<CreateChannelInviteParams>Optional
options: AxiosRequestConfig<any>Create a new DM channel with a user. Returns a DM channel object (if one already exists, it will be returned instead).
Optional
params: Partial<CreateDmParams>Optional
options: AxiosRequestConfig<any>Create a followup message for an Interaction. Functions the same as Execute Webhook, but wait is always true. The thread_id, avatar_url, and username parameters are not supported when using this endpoint for interaction followups.
Optional
options: AxiosRequestConfig<any>Optional
params: Partial<CreateGlobalApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Create a new group DM channel with multiple users. Returns a DM channel object. This endpoint was intended to be used with the now-deprecated GameBridge SDK. Fires a Channel Create Gateway event.
Optional
params: Partial<CreateGroupDmParams>Optional
options: AxiosRequestConfig<any>Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event.
Optional
params: Partial<CreateGuildParams>Optional
options: AxiosRequestConfig<any>Optional
params: Partial<CreateGuildApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Create a guild ban, and optionally delete previous messages sent by the banned user. Requires the BAN_MEMBERS permission. Returns a 204 empty response on success. Fires a Guild Ban Add Gateway event.
Optional
params: Partial<CreateGuildBanParams>Optional
options: AxiosRequestConfig<any>Create a new channel object for the guild. Requires the MANAGE_CHANNELS permission. If setting permission overwrites, only permissions your bot has in the guild can be allowed/denied. Setting MANAGE_ROLES permission in channels is only possible for guild administrators. Returns the new channel object on success. Fires a Channel Create Gateway event.
Optional
params: Partial<CreateGuildChannelParams>Optional
options: AxiosRequestConfig<any>Create a new emoji for the guild. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the new emoji object on success. Fires a Guild Emojis Update Gateway event.
Optional
params: Partial<CreateGuildEmojiParams>Optional
options: AxiosRequestConfig<any>Create a new guild based on a template. Returns a guild object on success. Fires a Guild Create Gateway event.
Optional
params: Partial<CreateGuildFromGuildTemplateParams>Optional
options: AxiosRequestConfig<any>Create a new role for the guild. Requires the MANAGE_ROLES permission. Returns the new role object on success. Fires a Guild Role Create Gateway event. All JSON params are optional.
Optional
params: Partial<CreateGuildRoleParams>Optional
options: AxiosRequestConfig<any>Create a guild scheduled event in the guild. Returns a guild scheduled event object on success. Fires a Guild Scheduled Event Create Gateway event.
Optional
params: Partial<CreateGuildScheduledEventParams>Optional
options: AxiosRequestConfig<any>Create a new sticker for the guild. Send a multipart/form-data body. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the new sticker object on success. Fires a Guild Stickers Update Gateway event.
Optional
params: Partial<CreateGuildStickerParams>Optional
options: AxiosRequestConfig<any>Creates a template for the guild. Requires the MANAGE_GUILD permission. Returns the created guild template object on success.
Optional
params: Partial<CreateGuildTemplateParams>Optional
options: AxiosRequestConfig<any>Create a response to an Interaction from the gateway. Body is an interaction response. Returns 204 No Content.
Optional
params: Partial<InteractionResponse>Optional
options: AxiosRequestConfig<any>Optional
params: Partial<CreateMessageParams>Optional
options: AxiosRequestConfig<any>Create a reaction for the message. This endpoint requires the READ_MESSAGE_HISTORY permission to be present on the current user. Additionally, if nobody else has reacted to the message using this emoji, this endpoint requires the ADD_REACTIONS permission to be present on the current user. Returns a 204 empty response on success. Fires a Message Reaction Add Gateway event. The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id.
Optional
options: AxiosRequestConfig<any>Creates a new Stage instance associated to a Stage channel. Returns that Stage instance. Fires a Stage Instance Create Gateway event.
Optional
params: Partial<CreateStageInstanceParams>Optional
options: AxiosRequestConfig<any>Creates a new webhook and returns a webhook object on success. Requires the MANAGE_WEBHOOKS permission. Fires a Webhooks Update Gateway event.
Optional
params: Partial<CreateWebhookParams>Optional
options: AxiosRequestConfig<any>Crosspost a message in an Announcement Channel to following channels. This endpoint requires the SEND_MESSAGES permission, if the current user sent the message, or additionally the MANAGE_MESSAGES permission, for all other messages, to be present for the current user.
Optional
options: AxiosRequestConfig<any>Optional
config: AxiosRequestConfig<D>Deletes all reactions on a message. This endpoint requires the MANAGE_MESSAGES permission to be present on the current user. Fires a Message Reaction Remove All Gateway event.
Optional
options: AxiosRequestConfig<any>Deletes all the reactions for a given emoji on a message. This endpoint requires the MANAGE_MESSAGES permission to be present on the current user. Fires a Message Reaction Remove Emoji Gateway event. The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id.
Optional
options: AxiosRequestConfig<any>Delete a rule. Returns a 204 on success. Fires an Auto Moderation Rule Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Delete a channel permission overwrite for a user or role in a channel. Only usable for guild channels. Requires the MANAGE_ROLES permission. Returns a 204 empty response on success. Fires a Channel Update Gateway event. For more information about permissions, see permissions
Optional
options: AxiosRequestConfig<any>Deletes a followup message for an Interaction. Returns 204 No Content on success.
Optional
options: AxiosRequestConfig<any>Deletes a global command. Returns 204 No Content on success.
Optional
options: AxiosRequestConfig<any>Delete a guild permanently. User must be owner. Returns 204 No Content on success. Fires a Guild Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Delete a guild command. Returns 204 No Content on success.
Optional
options: AxiosRequestConfig<any>Delete the given emoji. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns 204 No Content on success. Fires a Guild Emojis Update Gateway event.
Optional
options: AxiosRequestConfig<any>Delete the attached integration object for the guild. Deletes any associated webhooks and kicks the associated bot if there is one. Requires the MANAGE_GUILD permission. Returns a 204 empty response on success. Fires Guild Integrations Update and Integration Delete Gateway events.
Optional
options: AxiosRequestConfig<any>Delete a guild role. Requires the MANAGE_ROLES permission. Returns a 204 empty response on success. Fires a Guild Role Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Delete a guild scheduled event. Returns a 204 on success. Fires a Guild Scheduled Event Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Delete the given sticker. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns 204 No Content on success. Fires a Guild Stickers Update Gateway event.
Optional
options: AxiosRequestConfig<any>Deletes the template. Requires the MANAGE_GUILD permission. Returns the deleted guild template object on success.
Optional
options: AxiosRequestConfig<any>Delete an invite. Requires the MANAGE_CHANNELS permission on the channel this invite belongs to, or MANAGE_GUILD to remove any invite across the guild. Returns an invite object on success. Fires an Invite Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Delete a message. If operating on a guild channel and trying to delete a message that was not sent by the current user, this endpoint requires the MANAGE_MESSAGES permission. Returns a 204 empty response on success. Fires a Message Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Deletes the initial Interaction response. Returns 204 No Content on success.
Optional
options: AxiosRequestConfig<any>Delete a reaction the current user has made for the message. Returns a 204 empty response on success. Fires a Message Reaction Remove Gateway event. The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id.
Optional
options: AxiosRequestConfig<any>Deletes the Stage instance. Returns 204 No Content. Fires a Stage Instance Delete Gateway event.
Optional
options: AxiosRequestConfig<any>Deletes another user's reaction. This endpoint requires the MANAGE_MESSAGES permission to be present on the current user. Returns a 204 empty response on success. Fires a Message Reaction Remove Gateway event. The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id.
Optional
options: AxiosRequestConfig<any>Delete a webhook permanently. Requires the MANAGE_WEBHOOKS permission. Returns a 204 No Content response on success. Fires a Webhooks Update Gateway event.
Optional
options: AxiosRequestConfig<any>Deletes a message that was created by the webhook. Returns a 204 No Content response on success.
Optional
params: Partial<DeleteWebhookMessageParams>Optional
options: AxiosRequestConfig<any>Same as above, except this call does not require authentication.
Optional
options: AxiosRequestConfig<any>Delete a channel, or close a private message. Requires the MANAGE_CHANNELS permission for the guild, or MANAGE_THREADS if the channel is a thread. Deleting a category does not delete its child channels; they will have their parent_id removed and a Channel Update Gateway event will fire for each of them. Returns a channel object on success. Fires a Channel Delete Gateway event (or Thread Delete if the channel was a thread).
Optional
options: AxiosRequestConfig<any>Optional
params: Partial<EditApplicationCommandPermissionParams>Optional
options: AxiosRequestConfig<any>Edit the channel permission overwrites for a user or role in a channel. Only usable for guild channels. Requires the MANAGE_ROLES permission. Only permissions your bot has in the guild or parent channel (if applicable) can be allowed/denied (unless your bot has a MANAGE_ROLES overwrite in the channel). Returns a 204 empty response on success. Fires a Channel Update Gateway event. For more information about permissions, see permissions.
Optional
params: Partial<EditChannelPermissionParams>Optional
options: AxiosRequestConfig<any>Edits a followup message for an Interaction. Functions the same as Edit Webhook Message.
Optional
options: AxiosRequestConfig<any>Optional
params: Partial<EditGlobalApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Optional
params: Partial<EditGuildApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Edit a previously sent message. The fields content, embeds, and flags can be edited by the original message author. Other users can only edit flags and only if they have the MANAGE_MESSAGES permission in the corresponding channel. When specifying flags, ensure to include all previously set flags/bits in addition to ones that you are modifying. Only flags documented in the table below may be modified by users (unsupported flag changes are currently ignored without error).
Optional
params: Partial<EditMessageParams>Optional
options: AxiosRequestConfig<any>Edits the initial Interaction response. Functions the same as Edit Webhook Message.
Optional
options: AxiosRequestConfig<any>Edits a previously-sent webhook message from the same token. Returns a message object on success.
Optional
params: Partial<EditWebhookMessageParams>Optional
options: AxiosRequestConfig<any>Observable of side effects. It is required that you subscribe to this for the client to function.
Add a new webhook to your GitHub repo (in the repo's settings), and use this endpoint as the "Payload URL." You can choose what events your Discord channel receives by choosing the "Let me select individual events" option and selecting individual events for the new webhook you're configuring.
Optional
options: AxiosRequestConfig<any>Refer to Slack's documentation for more information. We do not support Slack's channel, icon_emoji, mrkdwn, or mrkdwn_in properties.
Optional
options: AxiosRequestConfig<any>Refer to Uploading Files for details on attachments and multipart/form-data requests. Returns a message or 204 No Content depending on the wait query parameter.
Optional
params: Partial<ExecuteWebhookParams>Optional
options: AxiosRequestConfig<any>Follow an Announcement Channel to send messages to a target channel. Requires the MANAGE_WEBHOOKS permission in the target channel. Returns a followed channel object. Fires a Webhooks Update Gateway event for the target channel.
Optional
params: Partial<FollowAnnouncementChannelParams>Optional
options: AxiosRequestConfig<any>Optional
config: AxiosRequestConfig<D>Fetches permissions for a specific command for your application in a guild. Returns a guild application command permissions object.
Optional
options: AxiosRequestConfig<any>Returns a list of application role connection metadata objects for the given application.
Optional
options: AxiosRequestConfig<any>Get a single rule. Returns an auto moderation rule object.
Optional
options: AxiosRequestConfig<any>Get a channel by ID. Returns a channel object. If the channel is a thread, a thread member object is included in the returned result.
Optional
options: AxiosRequestConfig<any>Returns a list of invite objects (with invite metadata) for the channel. Only usable for guild channels. Requires the MANAGE_CHANNELS permission.
Optional
options: AxiosRequestConfig<any>Retrieves the messages in a channel. Returns an array of message objects on success.
Optional
params: Partial<GetChannelMessageParams>Optional
options: AxiosRequestConfig<any>Returns info about the current authorization. Requires authentication with a bearer token.
Optional
options: AxiosRequestConfig<any>Returns the bot's application object.
Optional
options: AxiosRequestConfig<any>Returns the user object of the requester's account. For OAuth2, this requires the identify scope, which will return the object without an email, and optionally the email scope, which returns the object with an email.
Optional
options: AxiosRequestConfig<any>Returns a guild member object for the current user. Requires the guilds.members.read OAuth2 scope.
Optional
options: AxiosRequestConfig<any>Returns a list of partial guild objects the current user is a member of. Requires the guilds OAuth2 scope.
Optional
params: Partial<GetCurrentUserGuildParams>Optional
options: AxiosRequestConfig<any>Returns a followup message for an Interaction. Functions the same as Get Webhook Message.
Optional
options: AxiosRequestConfig<any>Optional
options: AxiosRequestConfig<any>Optional
options: AxiosRequestConfig<any>Fetch a global command for your application. Returns an application command object.
Optional
options: AxiosRequestConfig<any>Optional
params: Partial<GetGlobalApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Returns the guild object for the given id. If with_counts is set to true, this endpoint will also return approximate_member_count and approximate_presence_count for the guild.
Optional
params: Partial<GetGuildParams>Optional
options: AxiosRequestConfig<any>Fetch a guild command for your application. Returns an application command object.
Optional
options: AxiosRequestConfig<any>Fetches permissions for all commands for your application in a guild. Returns an array of guild application command permissions objects.
Optional
options: AxiosRequestConfig<any>Optional
params: Partial<GetGuildApplicationCommandParams>Optional
options: AxiosRequestConfig<any>Returns an audit log object for the guild. Requires the VIEW_AUDIT_LOG permission.
Optional
params: Partial<GetGuildAuditLogParams>Optional
options: AxiosRequestConfig<any>Returns a ban object for the given user or a 404 not found if the ban cannot be found. Requires the BAN_MEMBERS permission.
Optional
options: AxiosRequestConfig<any>Returns a list of ban objects for the users banned from this guild. Requires the BAN_MEMBERS permission.
Optional
params: Partial<GetGuildBanParams>Optional
options: AxiosRequestConfig<any>Returns a list of integration objects for the guild. Requires the MANAGE_GUILD permission.
Optional
options: AxiosRequestConfig<any>Returns a guild member object for the specified user.
Optional
options: AxiosRequestConfig<any>Returns the Onboarding object for the guild.
Optional
options: AxiosRequestConfig<any>Returns the guild preview object for the given id. If the user is not in the guild, then the guild must be lurkable.
Optional
options: AxiosRequestConfig<any>Returns an object with one pruned key indicating the number of members that would be removed in a prune operation. Requires the KICK_MEMBERS permission.
Optional
params: Partial<GetGuildPruneCountParams>Optional
options: AxiosRequestConfig<any>Get a guild scheduled event. Returns a guild scheduled event object on success.
Optional
params: Partial<GetGuildScheduledEventParams>Optional
options: AxiosRequestConfig<any>Get a list of guild scheduled event users subscribed to a guild scheduled event. Returns a list of guild scheduled event user objects on success. Guild member data, if it exists, is included if the with_member query parameter is set.
Optional
params: Partial<GetGuildScheduledEventUserParams>Optional
options: AxiosRequestConfig<any>Returns a sticker object for the given guild and sticker IDs. Includes the user field if the bot has the MANAGE_GUILD_EXPRESSIONS permission.
Optional
options: AxiosRequestConfig<any>Returns a guild template object for the given code.
Optional
options: AxiosRequestConfig<any>Returns an array of guild template objects. Requires the MANAGE_GUILD permission.
Optional
options: AxiosRequestConfig<any>Returns a partial invite object for guilds with that feature enabled. Requires the MANAGE_GUILD permission. code will be null if a vanity url for the guild is not set.
Optional
options: AxiosRequestConfig<any>Returns a list of voice region objects for the guild. Unlike the similar /voice route, this returns VIP servers when the guild is VIP-enabled.
Optional
options: AxiosRequestConfig<any>Returns the Welcome Screen object for the guild. If the welcome screen is not enabled, the MANAGE_GUILD permission is required.
Optional
options: AxiosRequestConfig<any>Returns the widget for the guild.
Optional
options: AxiosRequestConfig<any>Returns a PNG image widget for the guild. Requires no permissions or authentication.
Optional
params: Partial<GetGuildWidgetImageParams>Optional
options: AxiosRequestConfig<any>Returns a guild widget settings object. Requires the MANAGE_GUILD permission.
Optional
options: AxiosRequestConfig<any>Returns an invite object for the given code.
Optional
params: Partial<GetInviteParams>Optional
options: AxiosRequestConfig<any>Returns the initial Interaction response. Functions the same as Get Webhook Message.
Optional
options: AxiosRequestConfig<any>Get a list of users that reacted with this emoji. Returns an array of user objects on success. The emoji must be URL Encoded or the request will fail with 10014: Unknown Emoji. To use custom emoji, you must encode it in the format name:id with the emoji name and emoji id.
Optional
params: Partial<GetReactionParams>Optional
options: AxiosRequestConfig<any>Gets the stage instance associated with the Stage channel, if it exists.
Optional
options: AxiosRequestConfig<any>Returns a thread member object for the specified user if they are a member of the thread, returns a 404 response otherwise.
Optional
params: Partial<GetThreadMemberParams>Optional
options: AxiosRequestConfig<any>Returns the application role connection for the user. Requires an OAuth2 access token with role_connections.write scope for the application specified in the path.
Optional
options: AxiosRequestConfig<any>Returns a list of connection objects. Requires the connections OAuth2 scope.
Optional
options: AxiosRequestConfig<any>Returns a previously-sent webhook message from the same token. Returns a message object on success.
Optional
params: Partial<GetWebhookMessageParams>Optional
options: AxiosRequestConfig<any>Same as above, except this call does not require authentication and returns no user in the webhook object.
Optional
options: AxiosRequestConfig<any>Adds a recipient to a Group DM using their access token.
Optional
params: Partial<GroupDmAddRecipientParams>Optional
options: AxiosRequestConfig<any>Removes a recipient from a Group DM.
Optional
options: AxiosRequestConfig<any>Adds the current user to a thread. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update and a Thread Create Gateway event.
Optional
options: AxiosRequestConfig<any>Leave a guild. Returns a 204 empty response on success. Fires a Guild Delete Gateway event and a Guild Member Remove Gateway event.
Optional
options: AxiosRequestConfig<any>Removes the current user from a thread. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update Gateway event.
Optional
options: AxiosRequestConfig<any>Returns all active threads in the guild, including public and private threads. Threads are ordered by their id, in descending order.
Optional
options: AxiosRequestConfig<any>Get a list of all rules currently configured for the guild. Returns a list of auto moderation rule objects for the given guild.
Optional
options: AxiosRequestConfig<any>Returns a list of guild member objects that are members of the guild.
Optional
params: Partial<ListGuildMemberParams>Optional
options: AxiosRequestConfig<any>Returns an array of sticker objects for the given guild. Includes user fields if the bot has the MANAGE_GUILD_EXPRESSIONS permission.
Optional
options: AxiosRequestConfig<any>Returns archived threads in the channel that are of type PRIVATE_THREAD, and the user has joined. Threads are ordered by their id, in descending order. Requires the READ_MESSAGE_HISTORY permission.
Optional
params: Partial<ListJoinedPrivateArchivedThreadParams>Optional
options: AxiosRequestConfig<any>Returns the list of sticker packs available to Nitro subscribers.
Optional
options: AxiosRequestConfig<any>Returns archived threads in the channel that are of type PRIVATE_THREAD. Threads are ordered by archive_timestamp, in descending order. Requires both the READ_MESSAGE_HISTORY and MANAGE_THREADS permissions.
Optional
params: Partial<ListPrivateArchivedThreadParams>Optional
options: AxiosRequestConfig<any>Returns archived threads in the channel that are public. When called on a GUILD_TEXT channel, returns threads of type PUBLIC_THREAD. When called on a GUILD_ANNOUNCEMENT channel returns threads of type ANNOUNCEMENT_THREAD. Threads are ordered by archive_timestamp, in descending order. Requires the READ_MESSAGE_HISTORY permission.
Optional
params: Partial<ListPublicArchivedThreadParams>Optional
options: AxiosRequestConfig<any>Returns a list of guild scheduled event objects for the given guild.
Optional
params: Partial<ListScheduledEventsForGuildParams>Optional
options: AxiosRequestConfig<any>Optional
params: Partial<ListThreadMemberParams>Optional
options: AxiosRequestConfig<any>Returns an array of voice region objects that can be used when setting a voice or stage channel's rtc_region.
Optional
options: AxiosRequestConfig<any>Modify an existing rule. Returns an auto moderation rule on success. Fires an Auto Moderation Rule Update Gateway event.
Optional
params: Partial<ModifyAutoModerationRuleParams>Optional
options: AxiosRequestConfig<any>Update a channel's settings. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. All JSON parameters are optional.
Optional
params: Partial<ModifyChannelParams>Optional
options: AxiosRequestConfig<any>Modifies the current member in a guild. Returns a 200 with the updated member object on success. Fires a Guild Member Update Gateway event.
Optional
params: Partial<ModifyCurrentMemberParams>Optional
options: AxiosRequestConfig<any>Modify the requester's user account settings. Returns a user object on success. Fires a User Update Gateway event.
Optional
params: Partial<ModifyCurrentUserParams>Optional
options: AxiosRequestConfig<any>Optional
params: Partial<ModifyCurrentUserNickParams>Optional
options: AxiosRequestConfig<any>Updates the current user's voice state. Returns 204 No Content on success. Fires a Voice State Update Gateway event.
Optional
params: Partial<ModifyCurrentUserVoiceStateParams>Optional
options: AxiosRequestConfig<any>Modify a guild's settings. Requires the MANAGE_GUILD permission. Returns the updated guild object on success. Fires a Guild Update Gateway event.
Optional
params: Partial<ModifyGuildParams>Optional
options: AxiosRequestConfig<any>Modify the positions of a set of channel objects for the guild. Requires MANAGE_CHANNELS permission. Returns a 204 empty response on success. Fires multiple Channel Update Gateway events.
Optional
params: Partial<ModifyGuildChannelPositionParams>Optional
options: AxiosRequestConfig<any>Modify the given emoji. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated emoji object on success. Fires a Guild Emojis Update Gateway event.
Optional
params: Partial<ModifyGuildEmojiParams>Optional
options: AxiosRequestConfig<any>Modify attributes of a guild member. Returns a 200 OK with the guild member as the body. Fires a Guild Member Update Gateway event. If the channel_id is set to null, this will force the target user to be disconnected from voice.
Optional
params: Partial<ModifyGuildMemberParams>Optional
options: AxiosRequestConfig<any>Modify a guild's MFA level. Requires guild ownership. Returns the updated level on success. Fires a Guild Update Gateway event.
Optional
params: Partial<ModifyGuildMfaLevelParams>Optional
options: AxiosRequestConfig<any>Modify a guild role. Requires the MANAGE_ROLES permission. Returns the updated role on success. Fires a Guild Role Update Gateway event.
Optional
params: Partial<ModifyGuildRoleParams>Optional
options: AxiosRequestConfig<any>Modify the positions of a set of role objects for the guild. Requires the MANAGE_ROLES permission. Returns a list of all of the guild's role objects on success. Fires multiple Guild Role Update Gateway events.
Optional
params: Partial<ModifyGuildRolePositionParams>Optional
options: AxiosRequestConfig<any>Modify a guild scheduled event. Returns the modified guild scheduled event object on success. Fires a Guild Scheduled Event Update Gateway event.
Optional
params: Partial<ModifyGuildScheduledEventParams>Optional
options: AxiosRequestConfig<any>Modify the given sticker. Requires the MANAGE_GUILD_EXPRESSIONS permission. Returns the updated sticker object on success. Fires a Guild Stickers Update Gateway event.
Optional
params: Partial<ModifyGuildStickerParams>Optional
options: AxiosRequestConfig<any>Modifies the template's metadata. Requires the MANAGE_GUILD permission. Returns the guild template object on success.
Optional
params: Partial<ModifyGuildTemplateParams>Optional
options: AxiosRequestConfig<any>Modify the guild's Welcome Screen. Requires the MANAGE_GUILD permission. Returns the updated Welcome Screen object. May fire a Guild Update Gateway event.
Optional
params: Partial<ModifyGuildWelcomeScreenParams>Optional
options: AxiosRequestConfig<any>Modify a guild widget settings object for the guild. All attributes may be passed in with JSON and modified. Requires the MANAGE_GUILD permission. Returns the updated guild widget object.
Optional
options: AxiosRequestConfig<any>Updates fields of an existing Stage instance. Returns the updated Stage instance. Fires a Stage Instance Update Gateway event.
Optional
params: Partial<ModifyStageInstanceParams>Optional
options: AxiosRequestConfig<any>Updates another user's voice state. Fires a Voice State Update Gateway event.
Optional
params: Partial<ModifyUserVoiceStateParams>Optional
options: AxiosRequestConfig<any>Modify a webhook. Requires the MANAGE_WEBHOOKS permission. Returns the updated webhook object on success. Fires a Webhooks Update Gateway event.
Optional
params: Partial<ModifyWebhookParams>Optional
options: AxiosRequestConfig<any>Same as above, except this call does not require authentication, does not accept a channel_id parameter in the body, and does not return a user in the webhook object.
Optional
options: AxiosRequestConfig<any>Optional
data: DOptional
config: AxiosRequestConfig<D>Pin a message in a channel. Requires the MANAGE_MESSAGES permission. Returns a 204 empty response on success. Fires a Channel Pins Update Gateway event.
Optional
options: AxiosRequestConfig<any>Optional
data: DOptional
config: AxiosRequestConfig<D>Optional
data: DOptional
config: AxiosRequestConfig<D>Remove the ban for a user. Requires the BAN_MEMBERS permissions. Returns a 204 empty response on success. Fires a Guild Ban Remove Gateway event.
Optional
options: AxiosRequestConfig<any>Remove a member from a guild. Requires KICK_MEMBERS permission. Returns a 204 empty response on success. Fires a Guild Member Remove Gateway event.
Optional
options: AxiosRequestConfig<any>Removes a role from a guild member. Requires the MANAGE_ROLES permission. Returns a 204 empty response on success. Fires a Guild Member Update Gateway event.
Optional
options: AxiosRequestConfig<any>Removes another member from a thread. Requires the MANAGE_THREADS permission, or the creator of the thread if it is a PRIVATE_THREAD. Also requires the thread is not archived. Returns a 204 empty response on success. Fires a Thread Members Update Gateway event.
Optional
options: AxiosRequestConfig<any>Returns a list of guild member objects whose username or nickname starts with a provided string.
Optional
params: Partial<SearchGuildMemberParams>Optional
options: AxiosRequestConfig<any>Creates a new thread from an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create and a Message Update Gateway event.
Optional
params: Partial<StartThreadFromMessageParams>Optional
options: AxiosRequestConfig<any>Creates a new thread in a forum channel, and sends a message within the created thread. Returns a channel, with a nested message object, on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create and Message Create Gateway event.
Optional
params: Partial<StartThreadInForumChannelParams>Optional
options: AxiosRequestConfig<any>Creates a new thread that is not connected to an existing message. Returns a channel on success, and a 400 BAD REQUEST on invalid parameters. Fires a Thread Create Gateway event.
Optional
params: Partial<StartThreadWithoutMessageParams>Optional
options: AxiosRequestConfig<any>Syncs the template to the guild's current state. Requires the MANAGE_GUILD permission. Returns the guild template object on success.
Optional
options: AxiosRequestConfig<any>Post a typing indicator for the specified channel. Generally bots should not implement this route. However, if a bot is responding to a command and expects the computation to take a few seconds, this endpoint may be called to let the user know that the bot is processing their message. Returns a 204 empty response on success. Fires a Typing Start Gateway event.
Optional
options: AxiosRequestConfig<any>Unpin a message in a channel. Requires the MANAGE_MESSAGES permission. Returns a 204 empty response on success. Fires a Channel Pins Update Gateway event.
Optional
options: AxiosRequestConfig<any>Updates and returns a list of application role connection metadata objects for the given application.
Optional
options: AxiosRequestConfig<any>Updates and returns the application role connection for the user. Requires an OAuth2 access token with role_connections.write scope for the application specified in the path.
Optional
params: Partial<UpdateUserApplicationRoleConnectionParams>Optional
options: AxiosRequestConfig<any>Generated using TypeDoc
Adds a user to the guild, provided you have a valid oauth2 access token for the user with the guilds.join scope. Returns a 201 Created with the guild member as the body, or 204 No Content if the user is already a member of the guild. Fires a Guild Member Add Gateway event.