diff --git a/packages/rest/src/helpers/channels/announcements/followAnnouncementChannel.ts b/packages/rest/src/helpers/channels/announcements/followAnnouncementChannel.ts index 6bdf146cf..fff38c7b9 100644 --- a/packages/rest/src/helpers/channels/announcements/followAnnouncementChannel.ts +++ b/packages/rest/src/helpers/channels/announcements/followAnnouncementChannel.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Follows an announcement channel, allowing messages posted within it to be cross-posted into the target channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param sourceChannelId - The ID of the announcement channel to follow. * @param targetChannelId - The ID of the target channel - the channel to cross-post to. * @returns An instance of {@link DiscordFollowedChannel}. diff --git a/packages/rest/src/helpers/channels/createChannel.ts b/packages/rest/src/helpers/channels/createChannel.ts index c11a41395..75d3b7cf0 100644 --- a/packages/rest/src/helpers/channels/createChannel.ts +++ b/packages/rest/src/helpers/channels/createChannel.ts @@ -15,7 +15,7 @@ import { snakeToCamelCaseNested } from '../../transformer.js' /** * Creates a channel within a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to create the channel within. * @param options - The parameters for the creation of the channel. * @returns An instance of the created {@link DiscordChannel}. diff --git a/packages/rest/src/helpers/channels/deleteChannel.ts b/packages/rest/src/helpers/channels/deleteChannel.ts index 0fc116f5b..7d06bd49c 100644 --- a/packages/rest/src/helpers/channels/deleteChannel.ts +++ b/packages/rest/src/helpers/channels/deleteChannel.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a channel from within a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to delete. * @returns An instance of the deleted {@link Channel}. * diff --git a/packages/rest/src/helpers/channels/deleteChannelPermissionOverride.ts b/packages/rest/src/helpers/channels/deleteChannelPermissionOverride.ts index 376c0e3bd..7e12ea76c 100644 --- a/packages/rest/src/helpers/channels/deleteChannelPermissionOverride.ts +++ b/packages/rest/src/helpers/channels/deleteChannelPermissionOverride.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a permission override for a user or role in a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to delete the permission override of. * @param overwriteId - The ID of the permission override to delete. * diff --git a/packages/rest/src/helpers/channels/editChannel.ts b/packages/rest/src/helpers/channels/editChannel.ts index 1af108440..f0daa95fb 100644 --- a/packages/rest/src/helpers/channels/editChannel.ts +++ b/packages/rest/src/helpers/channels/editChannel.ts @@ -16,7 +16,7 @@ import { snakeToCamelCaseNested } from '../../transformer.js' /** * Edits a channel's settings. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to edit. * @param options - The parameters for the edit of the channel. * @returns An instance of the edited {@link DiscordChannel}. diff --git a/packages/rest/src/helpers/channels/editChannelPermissionOverrides.ts b/packages/rest/src/helpers/channels/editChannelPermissionOverrides.ts index 31c164d53..9c95f74b3 100644 --- a/packages/rest/src/helpers/channels/editChannelPermissionOverrides.ts +++ b/packages/rest/src/helpers/channels/editChannelPermissionOverrides.ts @@ -10,7 +10,7 @@ import type { RestManager } from '../../restManager.js' /** * Edits the permission overrides for a user or role in a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to edit the permission overrides of. * @param options - The permission override. * diff --git a/packages/rest/src/helpers/channels/editChannelPositions.ts b/packages/rest/src/helpers/channels/editChannelPositions.ts index cf789ed3c..61f93e9b1 100644 --- a/packages/rest/src/helpers/channels/editChannelPositions.ts +++ b/packages/rest/src/helpers/channels/editChannelPositions.ts @@ -6,7 +6,7 @@ export const swapChannels = editChannelPositions /** * Edits the positions of a set of channels in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild in which to edit the positions of the channels. * @param channelPositions - A set of objects defining the updated positions of the channels. * diff --git a/packages/rest/src/helpers/channels/forums/createForumThread.ts b/packages/rest/src/helpers/channels/forums/createForumThread.ts index 1f70f221a..0da8419de 100644 --- a/packages/rest/src/helpers/channels/forums/createForumThread.ts +++ b/packages/rest/src/helpers/channels/forums/createForumThread.ts @@ -15,7 +15,7 @@ import type { Embed } from '../../../transformers/embed.js' /** * Creates a new thread in a forum channel, and sends a message within the created thread. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the forum channel to create the thread within. * @param options - The parameters for the creation of the thread. * @returns An instance of {@link DiscordChannel} with a nested {@link Message} object. diff --git a/packages/rest/src/helpers/channels/getChannel.ts b/packages/rest/src/helpers/channels/getChannel.ts index 64b38a188..452e4c76b 100644 --- a/packages/rest/src/helpers/channels/getChannel.ts +++ b/packages/rest/src/helpers/channels/getChannel.ts @@ -9,7 +9,7 @@ import { snakeToCamelCaseNested } from '../../transformer.js' /** * Gets a channel by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to get. * @returns An instance of {@link DiscordChannel}. * diff --git a/packages/rest/src/helpers/channels/getChannelInvites.ts b/packages/rest/src/helpers/channels/getChannelInvites.ts index 2aaca582c..8b31d2ee9 100644 --- a/packages/rest/src/helpers/channels/getChannelInvites.ts +++ b/packages/rest/src/helpers/channels/getChannelInvites.ts @@ -10,7 +10,7 @@ import { snakeToCamelCaseNested } from '../../transformer.js' /** * Gets the list of invites for a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to get the invites of. * @returns A collection of {@link DiscordInviteMetadata} objects assorted by invite code. * diff --git a/packages/rest/src/helpers/channels/getChannels.ts b/packages/rest/src/helpers/channels/getChannels.ts index 0a005e5f9..edb911d3b 100644 --- a/packages/rest/src/helpers/channels/getChannels.ts +++ b/packages/rest/src/helpers/channels/getChannels.ts @@ -10,7 +10,7 @@ import { snakeToCamelCaseNested } from '../../transformer.js' /** * Gets the list of channels for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the channels of. * @returns A collection of {@link DiscordChannel} objects assorted by channel ID. * diff --git a/packages/rest/src/helpers/channels/stages/createStageInstance.ts b/packages/rest/src/helpers/channels/stages/createStageInstance.ts index 3089d934c..49d65ea59 100644 --- a/packages/rest/src/helpers/channels/stages/createStageInstance.ts +++ b/packages/rest/src/helpers/channels/stages/createStageInstance.ts @@ -10,7 +10,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Creates a stage instance associated with a stage channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param options - The parameters for the creation of the stage instance. * @returns An instance of the created {@link DiscordStageInstance}. * diff --git a/packages/rest/src/helpers/channels/stages/deleteStageInstance.ts b/packages/rest/src/helpers/channels/stages/deleteStageInstance.ts index 3e6546afe..613c6bab7 100644 --- a/packages/rest/src/helpers/channels/stages/deleteStageInstance.ts +++ b/packages/rest/src/helpers/channels/stages/deleteStageInstance.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes the stage instance associated with a stage channel, if one exists. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the stage channel the stage instance is associated with. * * @remarks diff --git a/packages/rest/src/helpers/channels/stages/editStageInstance.ts b/packages/rest/src/helpers/channels/stages/editStageInstance.ts index f53c9366a..854f1470b 100644 --- a/packages/rest/src/helpers/channels/stages/editStageInstance.ts +++ b/packages/rest/src/helpers/channels/stages/editStageInstance.ts @@ -10,7 +10,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Edits a stage instance. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the stage channel the stage instance is associated with. * @returns An instance of the updated {@link DiscordStageInstance}. * diff --git a/packages/rest/src/helpers/channels/stages/getStageInstance.ts b/packages/rest/src/helpers/channels/stages/getStageInstance.ts index d14c8753a..c2a99af0a 100644 --- a/packages/rest/src/helpers/channels/stages/getStageInstance.ts +++ b/packages/rest/src/helpers/channels/stages/getStageInstance.ts @@ -9,7 +9,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Gets the stage instance associated with a stage channel, if one exists. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the stage channel the stage instance is associated with. * @returns An instance of {@link DiscordStageInstance}. * diff --git a/packages/rest/src/helpers/channels/threads/addThreadMember.ts b/packages/rest/src/helpers/channels/threads/addThreadMember.ts index 953fb5d6a..b562534d7 100644 --- a/packages/rest/src/helpers/channels/threads/addThreadMember.ts +++ b/packages/rest/src/helpers/channels/threads/addThreadMember.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Adds a member to a thread. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the thread to add the member to. * @param userId - The user ID of the member to add to the thread. * diff --git a/packages/rest/src/helpers/channels/threads/getActiveThreads.ts b/packages/rest/src/helpers/channels/threads/getActiveThreads.ts index fa4cc8a50..3284d5fb5 100644 --- a/packages/rest/src/helpers/channels/threads/getActiveThreads.ts +++ b/packages/rest/src/helpers/channels/threads/getActiveThreads.ts @@ -12,7 +12,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Gets the list of all active threads for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the threads of. * @returns An instance of {@link DiscordActiveThreads}. * diff --git a/packages/rest/src/helpers/channels/threads/getPrivateArchivedThreads.ts b/packages/rest/src/helpers/channels/threads/getPrivateArchivedThreads.ts index 2fb2f2277..0ae837176 100644 --- a/packages/rest/src/helpers/channels/threads/getPrivateArchivedThreads.ts +++ b/packages/rest/src/helpers/channels/threads/getPrivateArchivedThreads.ts @@ -10,7 +10,7 @@ import type { /** * Gets the list of private archived threads for a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to get the archived threads for. * @param options - The parameters for the fetching of threads. * @returns An instance of {@link DiscordArchivedThreads}. diff --git a/packages/rest/src/helpers/channels/threads/getPrivateJoinedArchivedThreads.ts b/packages/rest/src/helpers/channels/threads/getPrivateJoinedArchivedThreads.ts index 4fd172076..524316381 100644 --- a/packages/rest/src/helpers/channels/threads/getPrivateJoinedArchivedThreads.ts +++ b/packages/rest/src/helpers/channels/threads/getPrivateJoinedArchivedThreads.ts @@ -10,7 +10,7 @@ import type { /** * Gets the list of private archived threads the bot is a member of for a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to get the archived threads for. * @param options - The parameters for the fetching of threads. * @returns An instance of {@link DiscordArchivedThreads}. diff --git a/packages/rest/src/helpers/channels/threads/getPublicArchivedThreads.ts b/packages/rest/src/helpers/channels/threads/getPublicArchivedThreads.ts index d067fef8c..c634fe737 100644 --- a/packages/rest/src/helpers/channels/threads/getPublicArchivedThreads.ts +++ b/packages/rest/src/helpers/channels/threads/getPublicArchivedThreads.ts @@ -7,7 +7,7 @@ import type { DiscordActiveThreads } from './getActiveThreads.js' /** * Gets the list of public archived threads for a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to get the archived threads for. * @param options - The parameters for the fetching of threads. * @returns An instance of {@link ArchivedThreads}. diff --git a/packages/rest/src/helpers/channels/threads/getThreadMember.ts b/packages/rest/src/helpers/channels/threads/getThreadMember.ts index 062cf6880..3e7feabc6 100644 --- a/packages/rest/src/helpers/channels/threads/getThreadMember.ts +++ b/packages/rest/src/helpers/channels/threads/getThreadMember.ts @@ -9,7 +9,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Gets a thread member by their user ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the thread to get the thread member of. * @param userId - The user ID of the thread member to get. * @returns An instance of {@link DiscordThreadMember}. diff --git a/packages/rest/src/helpers/channels/threads/getThreadMembers.ts b/packages/rest/src/helpers/channels/threads/getThreadMembers.ts index e9d0324f7..1bd9bca6c 100644 --- a/packages/rest/src/helpers/channels/threads/getThreadMembers.ts +++ b/packages/rest/src/helpers/channels/threads/getThreadMembers.ts @@ -10,7 +10,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Gets the list of thread members for a thread. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the thread to get the thread members of. * @returns A collection of {@link DiscordThreadMember} assorted by user ID. * diff --git a/packages/rest/src/helpers/channels/threads/joinThread.ts b/packages/rest/src/helpers/channels/threads/joinThread.ts index 4e791f7e3..3a3978e0a 100644 --- a/packages/rest/src/helpers/channels/threads/joinThread.ts +++ b/packages/rest/src/helpers/channels/threads/joinThread.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Adds the bot user to a thread. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the thread to add the bot user to. * * @remarks diff --git a/packages/rest/src/helpers/channels/threads/leaveThread.ts b/packages/rest/src/helpers/channels/threads/leaveThread.ts index 72568efe0..0b1f212f1 100644 --- a/packages/rest/src/helpers/channels/threads/leaveThread.ts +++ b/packages/rest/src/helpers/channels/threads/leaveThread.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Removes the bot user from a thread. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the thread to remove the bot user from. * * @remarks diff --git a/packages/rest/src/helpers/channels/threads/removeThreadMember.ts b/packages/rest/src/helpers/channels/threads/removeThreadMember.ts index 5eb7eeab3..1a4618da6 100644 --- a/packages/rest/src/helpers/channels/threads/removeThreadMember.ts +++ b/packages/rest/src/helpers/channels/threads/removeThreadMember.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Removes a member from a thread. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the thread to remove the thread member of. * @param userId - The user ID of the thread member to remove. * diff --git a/packages/rest/src/helpers/channels/threads/startThreadWithMessage.ts b/packages/rest/src/helpers/channels/threads/startThreadWithMessage.ts index c0f4ddd7b..a42613858 100644 --- a/packages/rest/src/helpers/channels/threads/startThreadWithMessage.ts +++ b/packages/rest/src/helpers/channels/threads/startThreadWithMessage.ts @@ -11,7 +11,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Creates a thread, using an existing message as its point of origin. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel in which to create the thread. * @param messageId - The ID of the message to use as the thread's point of origin. * @param options - The parameters to use for the creation of the thread. diff --git a/packages/rest/src/helpers/channels/threads/startThreadWithoutMessage.ts b/packages/rest/src/helpers/channels/threads/startThreadWithoutMessage.ts index fd66d8200..eff526eee 100644 --- a/packages/rest/src/helpers/channels/threads/startThreadWithoutMessage.ts +++ b/packages/rest/src/helpers/channels/threads/startThreadWithoutMessage.ts @@ -12,7 +12,7 @@ import { snakeToCamelCaseNested } from '../../../transformer.js' /** * Creates a thread without using a message as the thread's point of origin. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel in which to create the thread. * @param options - The parameters to use for the creation of the thread. * @returns An instance of the created {@link DiscordChannel | Thread}. diff --git a/packages/rest/src/helpers/channels/triggerTypingIndicator.ts b/packages/rest/src/helpers/channels/triggerTypingIndicator.ts index 12fbeee50..cef1f301f 100644 --- a/packages/rest/src/helpers/channels/triggerTypingIndicator.ts +++ b/packages/rest/src/helpers/channels/triggerTypingIndicator.ts @@ -6,7 +6,7 @@ export const startTyping = triggerTypingIndicator /** * Triggers a typing indicator for the bot user. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel in which to trigger the typing indicator. * * @remarks diff --git a/packages/rest/src/helpers/emojis/createEmoji.ts b/packages/rest/src/helpers/emojis/createEmoji.ts index 2d1b50a40..a6b1dbcef 100644 --- a/packages/rest/src/helpers/emojis/createEmoji.ts +++ b/packages/rest/src/helpers/emojis/createEmoji.ts @@ -11,7 +11,7 @@ import type { RestManager } from '../../restManager.js' /** * Creates an emoji in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild in which to create the emoji. * @param options - The parameters for the creation of the emoji. * @returns An instance of the created {@link DiscordEmoji}. diff --git a/packages/rest/src/helpers/emojis/deleteEmoji.ts b/packages/rest/src/helpers/emojis/deleteEmoji.ts index cabc393e9..10034235e 100644 --- a/packages/rest/src/helpers/emojis/deleteEmoji.ts +++ b/packages/rest/src/helpers/emojis/deleteEmoji.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes an emoji from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild from which to delete the emoji. * @param id - The ID of the emoji to delete. * diff --git a/packages/rest/src/helpers/emojis/editEmoji.ts b/packages/rest/src/helpers/emojis/editEmoji.ts index 8834b0da6..3da78ec20 100644 --- a/packages/rest/src/helpers/emojis/editEmoji.ts +++ b/packages/rest/src/helpers/emojis/editEmoji.ts @@ -10,7 +10,7 @@ import type { RestManager } from '../../restManager.js' /** * Edits an emoji. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild in which to edit the emoji. * @param id - The ID of the emoji to edit. * @param options - The parameters for the edit of the emoji. diff --git a/packages/rest/src/helpers/emojis/getEmoji.ts b/packages/rest/src/helpers/emojis/getEmoji.ts index ab95b8580..1cd8c3b7a 100644 --- a/packages/rest/src/helpers/emojis/getEmoji.ts +++ b/packages/rest/src/helpers/emojis/getEmoji.ts @@ -8,7 +8,7 @@ import type { RestManager } from '../../restManager.js' /** * Gets an emoji by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild from which to get the emoji. * @param emojiId - The ID of the emoji to get. * @returns An instance of {@link DiscordEmoji}. diff --git a/packages/rest/src/helpers/emojis/getEmojis.ts b/packages/rest/src/helpers/emojis/getEmojis.ts index 4d5461ee3..8ff910baa 100644 --- a/packages/rest/src/helpers/emojis/getEmojis.ts +++ b/packages/rest/src/helpers/emojis/getEmojis.ts @@ -9,7 +9,7 @@ import type { RestManager } from '../../restManager.js' /** * Gets the list of emojis for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild which to get the emojis of. * @returns A collection of {@link DiscordEmoji} objects assorted by emoji ID. * diff --git a/packages/rest/src/helpers/guilds/automod/createAutomodRule.ts b/packages/rest/src/helpers/guilds/automod/createAutomodRule.ts index 88bc44cbf..4c3f93804 100644 --- a/packages/rest/src/helpers/guilds/automod/createAutomodRule.ts +++ b/packages/rest/src/helpers/guilds/automod/createAutomodRule.ts @@ -14,7 +14,7 @@ import type { AutoModerationRule } from '../../../transformers/automodRule.js' /** * Creates an automod rule in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to create the rule in. * @param options - The parameters for the creation of the rule. * @returns An instance of the created {@link AutoModerationRule}. diff --git a/packages/rest/src/helpers/guilds/automod/deleteAutomodRule.ts b/packages/rest/src/helpers/guilds/automod/deleteAutomodRule.ts index 860ace892..ad930cb19 100644 --- a/packages/rest/src/helpers/guilds/automod/deleteAutomodRule.ts +++ b/packages/rest/src/helpers/guilds/automod/deleteAutomodRule.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes an automod rule. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to delete the rule from. * @param ruleId - The ID of the automod rule to delete. * diff --git a/packages/rest/src/helpers/guilds/automod/editAutomodRule.ts b/packages/rest/src/helpers/guilds/automod/editAutomodRule.ts index af12a62b7..7e60afb32 100644 --- a/packages/rest/src/helpers/guilds/automod/editAutomodRule.ts +++ b/packages/rest/src/helpers/guilds/automod/editAutomodRule.ts @@ -13,7 +13,7 @@ import type { AutoModerationRule } from '../../../transformers/automodRule.js' /** * Edits an automod rule. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the rule in. * @param ruleId - The ID of the rule to edit. * @param options - The parameters for the edit of the rule. diff --git a/packages/rest/src/helpers/guilds/automod/getAutomodRule.ts b/packages/rest/src/helpers/guilds/automod/getAutomodRule.ts index 6b82388ef..52ec88806 100644 --- a/packages/rest/src/helpers/guilds/automod/getAutomodRule.ts +++ b/packages/rest/src/helpers/guilds/automod/getAutomodRule.ts @@ -5,7 +5,7 @@ import type { AutoModerationRule } from '../../../transformers/automodRule.js' /** * Gets an automod rule by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the rule of. * @param ruleId - The ID of the rule to get. * @returns An instance of {@link AutoModerationRule}. diff --git a/packages/rest/src/helpers/guilds/automod/getAutomodRules.ts b/packages/rest/src/helpers/guilds/automod/getAutomodRules.ts index 6b891b811..d817efe27 100644 --- a/packages/rest/src/helpers/guilds/automod/getAutomodRules.ts +++ b/packages/rest/src/helpers/guilds/automod/getAutomodRules.ts @@ -6,7 +6,7 @@ import type { AutoModerationRule } from '../../../transformers/automodRule.js' /** * Gets the list of automod rules for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the rules from. * @returns A collection of {@link AutoModerationRule} objects assorted by rule ID. * diff --git a/packages/rest/src/helpers/guilds/createGuild.ts b/packages/rest/src/helpers/guilds/createGuild.ts index d721c5b13..6339a7834 100644 --- a/packages/rest/src/helpers/guilds/createGuild.ts +++ b/packages/rest/src/helpers/guilds/createGuild.ts @@ -14,7 +14,7 @@ import type { Role } from '../../transformers/role.js' /** * Creates a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param options - The parameters for the creation of the guild. * @returns An instance of the created {@link Guild}. * diff --git a/packages/rest/src/helpers/guilds/deleteGuild.ts b/packages/rest/src/helpers/guilds/deleteGuild.ts index d0c923a51..b30f54477 100644 --- a/packages/rest/src/helpers/guilds/deleteGuild.ts +++ b/packages/rest/src/helpers/guilds/deleteGuild.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to delete. * * @remarks diff --git a/packages/rest/src/helpers/guilds/editGuild.ts b/packages/rest/src/helpers/guilds/editGuild.ts index 5467ed368..b2f98ca26 100644 --- a/packages/rest/src/helpers/guilds/editGuild.ts +++ b/packages/rest/src/helpers/guilds/editGuild.ts @@ -17,7 +17,7 @@ import type { Guild } from '../../transformers/guild.js' /** * Edits a guild's settings. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit. * @param shardId - The ID of the shard the guild is in. * @param options - The parameters for the edit of the guild. diff --git a/packages/rest/src/helpers/guilds/editWelcomeScreen.ts b/packages/rest/src/helpers/guilds/editWelcomeScreen.ts index 2cd1e7a08..543adc27e 100644 --- a/packages/rest/src/helpers/guilds/editWelcomeScreen.ts +++ b/packages/rest/src/helpers/guilds/editWelcomeScreen.ts @@ -5,7 +5,7 @@ import type { WelcomeScreen } from '../../transformers/welcomeScreen.js' /** * Edits a guild's welcome screen. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the welcome screen of. * @param options - The parameters for the edit of the welcome screen. * @returns An instance of the edited {@link WelcomeScreen}. diff --git a/packages/rest/src/helpers/guilds/events/createScheduledEvent.ts b/packages/rest/src/helpers/guilds/events/createScheduledEvent.ts index 933de86fd..90c06a9af 100644 --- a/packages/rest/src/helpers/guilds/events/createScheduledEvent.ts +++ b/packages/rest/src/helpers/guilds/events/createScheduledEvent.ts @@ -15,7 +15,7 @@ import type { ScheduledEvent } from '../../../transformers/scheduledEvent.js' /** * Creates a scheduled event in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to create the scheduled event in. * @param options - The parameters for the creation of the scheduled event. * @returns An instance of the created {@link ScheduledEvent}. diff --git a/packages/rest/src/helpers/guilds/events/deleteScheduledEvent.ts b/packages/rest/src/helpers/guilds/events/deleteScheduledEvent.ts index 1e0763a24..ed8d120de 100644 --- a/packages/rest/src/helpers/guilds/events/deleteScheduledEvent.ts +++ b/packages/rest/src/helpers/guilds/events/deleteScheduledEvent.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes a scheduled event from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to delete the scheduled event from. * @param eventId - The ID of the scheduled event to delete. * diff --git a/packages/rest/src/helpers/guilds/events/editScheduledEvent.ts b/packages/rest/src/helpers/guilds/events/editScheduledEvent.ts index a4dc72f6c..64efd4d7a 100644 --- a/packages/rest/src/helpers/guilds/events/editScheduledEvent.ts +++ b/packages/rest/src/helpers/guilds/events/editScheduledEvent.ts @@ -14,7 +14,7 @@ import type { ScheduledEvent } from '../../../transformers/scheduledEvent.js' /** * Edits a scheduled event. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the scheduled event in. * @param eventId - The ID of the scheduled event to edit. * @returns An instance of the edited {@link ScheduledEvent}. diff --git a/packages/rest/src/helpers/guilds/events/getScheduledEvent.ts b/packages/rest/src/helpers/guilds/events/getScheduledEvent.ts index 9b4352c09..a35706e69 100644 --- a/packages/rest/src/helpers/guilds/events/getScheduledEvent.ts +++ b/packages/rest/src/helpers/guilds/events/getScheduledEvent.ts @@ -5,7 +5,7 @@ import type { ScheduledEvent } from '../../../transformers/scheduledEvent.js' /** * Gets a scheduled event by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the scheduled event from. * @param eventId - The ID of the scheduled event to get. * @param options - The parameters for the fetching of the scheduled event. diff --git a/packages/rest/src/helpers/guilds/events/getScheduledEventUsers.ts b/packages/rest/src/helpers/guilds/events/getScheduledEventUsers.ts index 71d946656..08ae5764e 100644 --- a/packages/rest/src/helpers/guilds/events/getScheduledEventUsers.ts +++ b/packages/rest/src/helpers/guilds/events/getScheduledEventUsers.ts @@ -9,7 +9,7 @@ import type { Member, User } from '../../../transformers/member.js' /** * Gets the list of subscribers to a scheduled event from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the subscribers to the scheduled event from. * @param eventId - The ID of the scheduled event to get the subscribers of. * @param options - The parameters for the fetching of the subscribers. diff --git a/packages/rest/src/helpers/guilds/events/getScheduledEvents.ts b/packages/rest/src/helpers/guilds/events/getScheduledEvents.ts index e21171a4b..89804ad24 100644 --- a/packages/rest/src/helpers/guilds/events/getScheduledEvents.ts +++ b/packages/rest/src/helpers/guilds/events/getScheduledEvents.ts @@ -6,7 +6,7 @@ import type { ScheduledEvent } from '../../../transformers/scheduledEvent.js' /** * Gets the list of scheduled events for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the scheduled events from. * @param options - The parameters for the fetching of the scheduled events. * @returns A collection of {@link ScheduledEvent} objects assorted by event ID. diff --git a/packages/rest/src/helpers/guilds/getAuditLog.ts b/packages/rest/src/helpers/guilds/getAuditLog.ts index b8673b9db..dbcee9dd9 100644 --- a/packages/rest/src/helpers/guilds/getAuditLog.ts +++ b/packages/rest/src/helpers/guilds/getAuditLog.ts @@ -30,7 +30,7 @@ export interface AuditLog { /** * Gets a guild's audit log. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the audit log of. * @param options - The parameters for the fetching of the audit log. * @returns An instance of {@link AuditLog}. diff --git a/packages/rest/src/helpers/guilds/getBan.ts b/packages/rest/src/helpers/guilds/getBan.ts index 938d452fb..6f06a3830 100644 --- a/packages/rest/src/helpers/guilds/getBan.ts +++ b/packages/rest/src/helpers/guilds/getBan.ts @@ -12,7 +12,7 @@ export interface Ban { /** * Gets a ban by user ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the ban from. * @param userId - The ID of the user to get the ban for. * @returns An instance of {@link Ban}. diff --git a/packages/rest/src/helpers/guilds/getBans.ts b/packages/rest/src/helpers/guilds/getBans.ts index 8842a15e6..6707a4573 100644 --- a/packages/rest/src/helpers/guilds/getBans.ts +++ b/packages/rest/src/helpers/guilds/getBans.ts @@ -6,7 +6,7 @@ import type { Ban } from './getBan.js' /** * Gets the list of bans for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the list of bans for. * @param options - The parameters for the fetching of the list of bans. * @returns A collection of {@link Ban} objects assorted by user ID. diff --git a/packages/rest/src/helpers/guilds/getGuildBannerUrl.ts b/packages/rest/src/helpers/guilds/getGuildBannerUrl.ts index fcb0e16ea..287de5b7e 100644 --- a/packages/rest/src/helpers/guilds/getGuildBannerUrl.ts +++ b/packages/rest/src/helpers/guilds/getGuildBannerUrl.ts @@ -7,7 +7,7 @@ import type { RestManager } from '../../restManager.js' /** * Builds a URL to the guild banner stored in the Discord CDN. * - * @param bot - The bot instance to use to build the URL. + * @param rest - The rest manager to use to build the URL. * @param guildId - The ID of the guild to get the link to the banner for. * @param options - The parameters for the building of the URL. * @returns The link to the resource or `undefined` if no banner has been set. diff --git a/packages/rest/src/helpers/guilds/getGuildIconUrl.ts b/packages/rest/src/helpers/guilds/getGuildIconUrl.ts index 032185498..967776c04 100644 --- a/packages/rest/src/helpers/guilds/getGuildIconUrl.ts +++ b/packages/rest/src/helpers/guilds/getGuildIconUrl.ts @@ -5,7 +5,7 @@ import type { RestManager } from '../../restManager.js' /** * Builds a URL to the guild icon stored in the Discord CDN. * - * @param bot - The bot instance to use to build the URL. + * @param rest - The rest manager to use to build the URL. * @param guildId - The ID of the guild to get the link to the banner for. * @param options - The parameters for the building of the URL. * @returns The link to the resource or `undefined` if no banner has been set. diff --git a/packages/rest/src/helpers/guilds/getGuildPreview.ts b/packages/rest/src/helpers/guilds/getGuildPreview.ts index 4b521621a..0cdc5c125 100644 --- a/packages/rest/src/helpers/guilds/getGuildPreview.ts +++ b/packages/rest/src/helpers/guilds/getGuildPreview.ts @@ -26,7 +26,7 @@ export interface GuildPreview { /** * Gets the preview of a guild by a guild's ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the preview of. * @returns An instance of {@link GuildPreview}. * diff --git a/packages/rest/src/helpers/guilds/getGuildSplashUrl.ts b/packages/rest/src/helpers/guilds/getGuildSplashUrl.ts index dad2fde74..116e39633 100644 --- a/packages/rest/src/helpers/guilds/getGuildSplashUrl.ts +++ b/packages/rest/src/helpers/guilds/getGuildSplashUrl.ts @@ -5,7 +5,7 @@ import type { RestManager } from '../../restManager.js' /** * Builds the URL to a guild splash stored in the Discord CDN. * - * @param bot - The bot instance to use to build the URL. + * @param rest - The rest manager to use to build the URL. * @param guildId - The ID of the guild to get the splash of. * @param imageHash - The hash identifying the splash image. * @param options - The parameters for the building of the URL. diff --git a/packages/rest/src/helpers/guilds/getPruneCount.ts b/packages/rest/src/helpers/guilds/getPruneCount.ts index 64c5f5253..e84dc481d 100644 --- a/packages/rest/src/helpers/guilds/getPruneCount.ts +++ b/packages/rest/src/helpers/guilds/getPruneCount.ts @@ -8,7 +8,7 @@ interface DiscordPrunedCount { /** * Gets the number of members that would be kicked from a guild during pruning. * - * @param bot - The bot instance used to make the request + * @param rest - The rest manager used to make the request * @param guildId - The ID of the guild to get the prune count of. * @param options - The parameters for the fetching of the prune count. * @returns A number indicating the number of members that would be kicked. diff --git a/packages/rest/src/helpers/guilds/getVanityUrl.ts b/packages/rest/src/helpers/guilds/getVanityUrl.ts index da299488e..31d49d1fa 100644 --- a/packages/rest/src/helpers/guilds/getVanityUrl.ts +++ b/packages/rest/src/helpers/guilds/getVanityUrl.ts @@ -11,7 +11,7 @@ export interface VanityUrl { /** * Gets information about the vanity url of a guild. * - * @param bot - The bot instance used to make the request + * @param rest - The rest manager used to make the request * @param guildId - The ID of the guild to get the vanity url information for. * @returns An instance of {@link VanityUrl}. * diff --git a/packages/rest/src/helpers/guilds/getWelcomeScreen.ts b/packages/rest/src/helpers/guilds/getWelcomeScreen.ts index e8e29cf7a..c80596a78 100644 --- a/packages/rest/src/helpers/guilds/getWelcomeScreen.ts +++ b/packages/rest/src/helpers/guilds/getWelcomeScreen.ts @@ -5,7 +5,7 @@ import type { WelcomeScreen } from '../../transformers/welcomeScreen.js' /** * Gets the welcome screen for a guild. * - * @param bot - The bot instance used to make the request + * @param rest - The rest manager used to make the request * @param guildId - The ID of the guild to get the welcome screen for. * @returns An instance of {@link WelcomeScreen}. * diff --git a/packages/rest/src/helpers/guilds/integrations/deleteIntegration.ts b/packages/rest/src/helpers/guilds/integrations/deleteIntegration.ts index 281693c68..a3309ffd5 100644 --- a/packages/rest/src/helpers/guilds/integrations/deleteIntegration.ts +++ b/packages/rest/src/helpers/guilds/integrations/deleteIntegration.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes an integration attached to a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild from which to delete the integration. * @param integrationId - The ID of the integration to delete from the guild. * diff --git a/packages/rest/src/helpers/guilds/integrations/getIntegrations.ts b/packages/rest/src/helpers/guilds/integrations/getIntegrations.ts index 2c2076ab6..1795106af 100644 --- a/packages/rest/src/helpers/guilds/integrations/getIntegrations.ts +++ b/packages/rest/src/helpers/guilds/integrations/getIntegrations.ts @@ -6,7 +6,7 @@ import type { Integration } from '../../../transformers/integration.js' /** * Gets the list of integrations attached to a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the list of integrations from. * @returns A collection of {@link Integration} objects assorted by integration ID. * diff --git a/packages/rest/src/helpers/guilds/invites/createInvite.ts b/packages/rest/src/helpers/guilds/invites/createInvite.ts index 8664aebde..babdf9c65 100644 --- a/packages/rest/src/helpers/guilds/invites/createInvite.ts +++ b/packages/rest/src/helpers/guilds/invites/createInvite.ts @@ -11,7 +11,7 @@ import type { BaseInvite } from './getInvite.js' /** * Creates an invite to a channel in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to create the invite to. * @param options - The parameters for the creation of the invite. * @returns An instance of the created {@link BaseInvite | Invite}. diff --git a/packages/rest/src/helpers/guilds/invites/deleteInvite.ts b/packages/rest/src/helpers/guilds/invites/deleteInvite.ts index 40731119d..35652e299 100644 --- a/packages/rest/src/helpers/guilds/invites/deleteInvite.ts +++ b/packages/rest/src/helpers/guilds/invites/deleteInvite.ts @@ -3,7 +3,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes an invite to a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param inviteCode - The invite code of the invite to delete. * * @remarks diff --git a/packages/rest/src/helpers/guilds/invites/getInvite.ts b/packages/rest/src/helpers/guilds/invites/getInvite.ts index a071bdf5c..e5c2f201b 100644 --- a/packages/rest/src/helpers/guilds/invites/getInvite.ts +++ b/packages/rest/src/helpers/guilds/invites/getInvite.ts @@ -29,7 +29,7 @@ export type InviteMetadata = BaseInvite & { /** * Gets an invite to a channel by its invite code. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param inviteCode - The invite code of the invite to get. * @param options - The parameters for the fetching of the invite. * @returns An instance of {@link BaseInvite | Invite}. diff --git a/packages/rest/src/helpers/guilds/invites/getInvites.ts b/packages/rest/src/helpers/guilds/invites/getInvites.ts index 4f0724e7f..8646c8f81 100644 --- a/packages/rest/src/helpers/guilds/invites/getInvites.ts +++ b/packages/rest/src/helpers/guilds/invites/getInvites.ts @@ -7,7 +7,7 @@ import type { InviteMetadata } from './getInvite.js' /** * Gets the list of invites for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the invites from. * @returns A collection of {@link InviteMetadata | Invite} objects assorted by invite code. * diff --git a/packages/rest/src/helpers/guilds/leaveGuild.ts b/packages/rest/src/helpers/guilds/leaveGuild.ts index 6f6252dc5..1e4db7bae 100644 --- a/packages/rest/src/helpers/guilds/leaveGuild.ts +++ b/packages/rest/src/helpers/guilds/leaveGuild.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Leaves a guild. * - * @param bot - The bot instance used to make the request + * @param rest - The rest manager used to make the request * @param guildId - The ID of the guild to leave. * * @remarks diff --git a/packages/rest/src/helpers/guilds/voice/editVoiceState.ts b/packages/rest/src/helpers/guilds/voice/editVoiceState.ts index fc467b0cf..3f99e476d 100644 --- a/packages/rest/src/helpers/guilds/voice/editVoiceState.ts +++ b/packages/rest/src/helpers/guilds/voice/editVoiceState.ts @@ -6,7 +6,7 @@ export const updateBotVoiceState = editOwnVoiceState /** * Edits the voice state of the bot user. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild in which to edit the voice state of the bot user. * @param options - The parameters for the edit of the voice state. * @@ -45,7 +45,7 @@ export async function editOwnVoiceState ( /** * Edits the voice state of another user. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild in which to edit the voice state of the bot user. * @param options - The parameters for the edit of the voice state. * diff --git a/packages/rest/src/helpers/guilds/voice/getAvailableVoiceRegions.ts b/packages/rest/src/helpers/guilds/voice/getAvailableVoiceRegions.ts index 2d78d3184..0836fd0c9 100644 --- a/packages/rest/src/helpers/guilds/voice/getAvailableVoiceRegions.ts +++ b/packages/rest/src/helpers/guilds/voice/getAvailableVoiceRegions.ts @@ -6,7 +6,7 @@ import type { VoiceRegions } from '../../../transformers/voiceRegion.js' /** * Gets the list of available voice regions. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @returns A collection of {@link VoiceRegions | VoiceRegion} objects assorted by voice region ID. */ export async function getAvailableVoiceRegions ( diff --git a/packages/rest/src/helpers/guilds/voice/getVoiceRegions.ts b/packages/rest/src/helpers/guilds/voice/getVoiceRegions.ts index 5d1401684..7ae208405 100644 --- a/packages/rest/src/helpers/guilds/voice/getVoiceRegions.ts +++ b/packages/rest/src/helpers/guilds/voice/getVoiceRegions.ts @@ -6,7 +6,7 @@ import type { VoiceRegions } from '../../../transformers/voiceRegion.js' /** * Gets the list of voice regions for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the voice regions for. * @returns A collection of {@link VoiceRegions | VoiceRegion} objects assorted by voice region ID. * diff --git a/packages/rest/src/helpers/guilds/widget/editWidgetSettings.ts b/packages/rest/src/helpers/guilds/widget/editWidgetSettings.ts index 4877f8c64..656e13811 100644 --- a/packages/rest/src/helpers/guilds/widget/editWidgetSettings.ts +++ b/packages/rest/src/helpers/guilds/widget/editWidgetSettings.ts @@ -7,7 +7,7 @@ import type { GuildWidgetSettings } from '../../../transformers/widgetSettings.j /** * Edits the settings of a guild's widget. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the settings of the widget of. * @returns An instance of the edited {@link GuildWidgetSettings}. * diff --git a/packages/rest/src/helpers/guilds/widget/getWidget.ts b/packages/rest/src/helpers/guilds/widget/getWidget.ts index 3dd6722d8..674e456f3 100644 --- a/packages/rest/src/helpers/guilds/widget/getWidget.ts +++ b/packages/rest/src/helpers/guilds/widget/getWidget.ts @@ -5,7 +5,7 @@ import type { GuildWidget } from '../../../transformers/widget.js' /** * Gets the guild widget by guild ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the widget of. * @returns An instance of {@link GuildWidget}. * diff --git a/packages/rest/src/helpers/guilds/widget/getWidgetImageUrl.ts b/packages/rest/src/helpers/guilds/widget/getWidgetImageUrl.ts index 7c902f803..988d20e3a 100644 --- a/packages/rest/src/helpers/guilds/widget/getWidgetImageUrl.ts +++ b/packages/rest/src/helpers/guilds/widget/getWidgetImageUrl.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Builds a URL to the guild widget image stored in the Discord CDN. * - * @param bot - The bot instance to use to build the URL. + * @param rest - The rest manager to use to build the URL. * @param guildId - The ID of the guild to get the link to the widget image for. * @param options - The parameters for the building of the URL. * @returns The link to the resource. diff --git a/packages/rest/src/helpers/guilds/widget/getWidgetSettings.ts b/packages/rest/src/helpers/guilds/widget/getWidgetSettings.ts index d5cfc0972..47d3868cb 100644 --- a/packages/rest/src/helpers/guilds/widget/getWidgetSettings.ts +++ b/packages/rest/src/helpers/guilds/widget/getWidgetSettings.ts @@ -5,7 +5,7 @@ import type { GuildWidgetSettings } from '../../../transformers/widgetSettings.j /** * Gets the settings of a guild's widget. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the widget of. * @returns An instance of {@link GuildWidgetSettings}. * diff --git a/packages/rest/src/helpers/interactions/commands/createGlobalApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/createGlobalApplicationCommand.ts index 34bed41c2..924969aca 100644 --- a/packages/rest/src/helpers/interactions/commands/createGlobalApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/createGlobalApplicationCommand.ts @@ -6,7 +6,7 @@ import type { CreateApplicationCommand } from '../../../types.js' /** * Creates an application command accessible globally; across different guilds and channels. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param command - The command to create. * @returns An instance of the created {@link ApplicationCommand}. * diff --git a/packages/rest/src/helpers/interactions/commands/createGuildApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/createGuildApplicationCommand.ts index 1ba217166..8ebf76124 100644 --- a/packages/rest/src/helpers/interactions/commands/createGuildApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/createGuildApplicationCommand.ts @@ -6,7 +6,7 @@ import type { CreateApplicationCommand } from '../../../types.js' /** * Creates an application command only accessible in a specific guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param command - The command to create. * @param guildId - The ID of the guild to create the command for. * @returns An instance of the created {@link ApplicationCommand}. diff --git a/packages/rest/src/helpers/interactions/commands/deleteGlobalApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/deleteGlobalApplicationCommand.ts index 814cad42f..c4daf2745 100644 --- a/packages/rest/src/helpers/interactions/commands/deleteGlobalApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/deleteGlobalApplicationCommand.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes an application command registered globally. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param commandId - The ID of the command to delete. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command} diff --git a/packages/rest/src/helpers/interactions/commands/deleteGuildApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/deleteGuildApplicationCommand.ts index aec606e91..70778a60b 100644 --- a/packages/rest/src/helpers/interactions/commands/deleteGuildApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/deleteGuildApplicationCommand.ts @@ -6,7 +6,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes an application command registered in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to delete the command from. * @param commandId - The ID of the command to delete from the guild. * diff --git a/packages/rest/src/helpers/interactions/commands/editApplicationCommandPermissions.ts b/packages/rest/src/helpers/interactions/commands/editApplicationCommandPermissions.ts index cf6f649fc..242505fcc 100644 --- a/packages/rest/src/helpers/interactions/commands/editApplicationCommandPermissions.ts +++ b/packages/rest/src/helpers/interactions/commands/editApplicationCommandPermissions.ts @@ -11,7 +11,7 @@ import type { ApplicationCommandPermission } from '../../../transformers/applica /** * Edits the permissions for a guild application command. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to edit the permissions of. * @param bearerToken - The bearer token to use to make the request. diff --git a/packages/rest/src/helpers/interactions/commands/editGlobalApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/editGlobalApplicationCommand.ts index 338696c73..55c46fb26 100644 --- a/packages/rest/src/helpers/interactions/commands/editGlobalApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/editGlobalApplicationCommand.ts @@ -6,7 +6,7 @@ import type { CreateApplicationCommand } from '../../../types' /** * Edits a global application command. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param commandId - The ID of the command to edit. * @param options - The parameters for the edit of the command. * @returns An instance of the edited {@link ApplicationCommand}. diff --git a/packages/rest/src/helpers/interactions/commands/editGuildApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/editGuildApplicationCommand.ts index 522c9a9e2..a15710f72 100644 --- a/packages/rest/src/helpers/interactions/commands/editGuildApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/editGuildApplicationCommand.ts @@ -8,7 +8,7 @@ import type { CreateApplicationCommand } from '../../../types' /** * Edits an application command registered in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to edit. * @param options - The parameters for the edit of the command. diff --git a/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermission.ts b/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermission.ts index f23f2b990..34ab9c3bc 100644 --- a/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermission.ts +++ b/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermission.ts @@ -8,7 +8,7 @@ import type { ApplicationCommandPermission } from '../../../transformers/applica /** * Gets the permissions of a guild application command. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to get the permissions of. * @returns An instance of {@link ApplicationCommandPermission}. diff --git a/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermissions.ts b/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermissions.ts index 7f6eebaec..911716d6e 100644 --- a/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermissions.ts +++ b/packages/rest/src/helpers/interactions/commands/getApplicationCommandPermissions.ts @@ -9,7 +9,7 @@ import type { ApplicationCommandPermission } from '../../../transformers/applica /** * Gets the permissions of all application commands registered in a guild by the ID of the guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the permissions objects of. * @returns A collection of {@link ApplicationCommandPermission} objects assorted by command ID. * diff --git a/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommand.ts index a4c409c8a..ea2eaa654 100644 --- a/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommand.ts @@ -5,7 +5,7 @@ import type { ApplicationCommand } from '../../../transformers/applicationComman /** * Gets a global application command by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param commandId - The ID of the command to get. * @returns An instance of {@link ApplicationCommand}. * diff --git a/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommands.ts b/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommands.ts index e1073ed12..7a9e012f4 100644 --- a/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommands.ts +++ b/packages/rest/src/helpers/interactions/commands/getGlobalApplicationCommands.ts @@ -8,7 +8,7 @@ import type { ApplicationCommand } from '../../../transformers/applicationComman /** * Gets the list of your bot's global application commands. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. * * @see {@link https://discord.com/developers/docs/interactions/application-commands#get-global-application-commands} diff --git a/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommand.ts b/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommand.ts index 7f77dd51c..94d68d9e6 100644 --- a/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommand.ts +++ b/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommand.ts @@ -7,7 +7,7 @@ import type { ApplicationCommand } from '../../../transformers/applicationComman /** * Gets a guild application command by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the command is registered in. * @param commandId - The ID of the command to get. * @returns An instance of {@link ApplicationCommand}. diff --git a/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommands.ts b/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommands.ts index 221756ef4..f6d74d0d5 100644 --- a/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommands.ts +++ b/packages/rest/src/helpers/interactions/commands/getGuildApplicationCommands.ts @@ -6,7 +6,7 @@ import type { ApplicationCommand } from '../../../transformers/applicationComman /** * Gets the list of application commands registered by your bot in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the commands are registered in. * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. * diff --git a/packages/rest/src/helpers/interactions/commands/upsertGlobalApplicationCommands.ts b/packages/rest/src/helpers/interactions/commands/upsertGlobalApplicationCommands.ts index 150977f4a..5e54bb82b 100644 --- a/packages/rest/src/helpers/interactions/commands/upsertGlobalApplicationCommands.ts +++ b/packages/rest/src/helpers/interactions/commands/upsertGlobalApplicationCommands.ts @@ -7,7 +7,7 @@ import type { CreateApplicationCommand } from '../../../types' /** * Re-registers the list of global application commands, overwriting the previous commands completely. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param commands - The list of commands to use to overwrite the previous list. * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. * diff --git a/packages/rest/src/helpers/interactions/commands/upsertGuildApplicationCommands.ts b/packages/rest/src/helpers/interactions/commands/upsertGuildApplicationCommands.ts index f13f49ebe..fd3de3b78 100644 --- a/packages/rest/src/helpers/interactions/commands/upsertGuildApplicationCommands.ts +++ b/packages/rest/src/helpers/interactions/commands/upsertGuildApplicationCommands.ts @@ -7,7 +7,7 @@ import type { CreateApplicationCommand } from '../../../types' /** * Re-registers the list of application commands registered in a guild, overwriting the previous commands completely. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild whose list of commands to overwrite. * @param commands - The list of commands to use to overwrite the previous list. * @returns A collection of {@link ApplicationCommand} objects assorted by command ID. diff --git a/packages/rest/src/helpers/interactions/responses/deleteFollowupMessage.ts b/packages/rest/src/helpers/interactions/responses/deleteFollowupMessage.ts index 091a86941..ddc142baf 100644 --- a/packages/rest/src/helpers/interactions/responses/deleteFollowupMessage.ts +++ b/packages/rest/src/helpers/interactions/responses/deleteFollowupMessage.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes a follow-up message to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * @param messageId - The ID of the message to delete. * diff --git a/packages/rest/src/helpers/interactions/responses/deleteOriginalInteractionResponse.ts b/packages/rest/src/helpers/interactions/responses/deleteOriginalInteractionResponse.ts index 9abb02126..d560067f1 100644 --- a/packages/rest/src/helpers/interactions/responses/deleteOriginalInteractionResponse.ts +++ b/packages/rest/src/helpers/interactions/responses/deleteOriginalInteractionResponse.ts @@ -3,7 +3,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes the initial message response to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * * @remarks diff --git a/packages/rest/src/helpers/interactions/responses/editFollowupMessage.ts b/packages/rest/src/helpers/interactions/responses/editFollowupMessage.ts index d0a0e7159..7488c9d55 100644 --- a/packages/rest/src/helpers/interactions/responses/editFollowupMessage.ts +++ b/packages/rest/src/helpers/interactions/responses/editFollowupMessage.ts @@ -7,7 +7,7 @@ import type { InteractionCallbackData } from '../../../types.js' /** * Edits a follow-up message to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * @param messageId - The ID of the message to edit. * @param options - The parameters for the edit of the message. diff --git a/packages/rest/src/helpers/interactions/responses/editOriginalInteractionResponse.ts b/packages/rest/src/helpers/interactions/responses/editOriginalInteractionResponse.ts index 8d0e93f96..6457b59e0 100644 --- a/packages/rest/src/helpers/interactions/responses/editOriginalInteractionResponse.ts +++ b/packages/rest/src/helpers/interactions/responses/editOriginalInteractionResponse.ts @@ -7,7 +7,7 @@ import type { InteractionCallbackData } from '../../../types' /** * Edits the initial message response to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * @param options - The parameters for the edit of the response. * @returns An instance of the edited {@link Message}. diff --git a/packages/rest/src/helpers/interactions/responses/getFollowupMessage.ts b/packages/rest/src/helpers/interactions/responses/getFollowupMessage.ts index 2f9d9a29e..72d1dabdc 100644 --- a/packages/rest/src/helpers/interactions/responses/getFollowupMessage.ts +++ b/packages/rest/src/helpers/interactions/responses/getFollowupMessage.ts @@ -5,7 +5,7 @@ import type { Message } from '../../../transformers/message.js' /** * Gets a follow-up message to an interaction by the ID of the message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * @param messageId - The ID of the message to get. * @returns An instance of {@link Message}. diff --git a/packages/rest/src/helpers/interactions/responses/getOriginalInteractionResponse.ts b/packages/rest/src/helpers/interactions/responses/getOriginalInteractionResponse.ts index 076268f99..4f2662496 100644 --- a/packages/rest/src/helpers/interactions/responses/getOriginalInteractionResponse.ts +++ b/packages/rest/src/helpers/interactions/responses/getOriginalInteractionResponse.ts @@ -5,7 +5,7 @@ import type { Message } from '../../../transformers/message.js' /** * Gets the initial message response to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * @returns An instance of {@link Message}. * diff --git a/packages/rest/src/helpers/interactions/responses/sendFollowupMessage.ts b/packages/rest/src/helpers/interactions/responses/sendFollowupMessage.ts index 5d25aa4c9..ef83eb126 100644 --- a/packages/rest/src/helpers/interactions/responses/sendFollowupMessage.ts +++ b/packages/rest/src/helpers/interactions/responses/sendFollowupMessage.ts @@ -6,7 +6,7 @@ import type { InteractionResponse } from '../../../types.js' /** * Sends a follow-up message to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param token - The interaction token to use, provided in the original interaction. * @param options - The parameters for the creation of the message. * @returns An instance of the created {@link Message}. diff --git a/packages/rest/src/helpers/interactions/responses/sendInteractionResponse.ts b/packages/rest/src/helpers/interactions/responses/sendInteractionResponse.ts index a8bf4dfb7..ca3ed09d6 100644 --- a/packages/rest/src/helpers/interactions/responses/sendInteractionResponse.ts +++ b/packages/rest/src/helpers/interactions/responses/sendInteractionResponse.ts @@ -5,7 +5,7 @@ import type { InteractionResponse } from '../../../types' /** * Sends a response to an interaction. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param interactionId - The ID of the interaction to respond to. * @param token - The interaction token to use, provided in the original interaction. * @param options - The parameters for the creation of the message. diff --git a/packages/rest/src/helpers/members/banMember.ts b/packages/rest/src/helpers/members/banMember.ts index 8e6a69df3..1e647cc91 100644 --- a/packages/rest/src/helpers/members/banMember.ts +++ b/packages/rest/src/helpers/members/banMember.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Bans a user from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to ban the user from. * @param userId - The ID of the user to ban from the guild. * @param options - The parameters for the creation of the ban. diff --git a/packages/rest/src/helpers/members/editBotMember.ts b/packages/rest/src/helpers/members/editBotMember.ts index cd4d58c93..3eb33c4b7 100644 --- a/packages/rest/src/helpers/members/editBotMember.ts +++ b/packages/rest/src/helpers/members/editBotMember.ts @@ -5,7 +5,7 @@ import type { Member } from '../../transformers/member.js' /** * Edits the nickname of the bot user. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the nickname of the bot user in. * @param options - The parameters for the edit of the nickname. * @returns An instance of the edited {@link Member} diff --git a/packages/rest/src/helpers/members/editMember.ts b/packages/rest/src/helpers/members/editMember.ts index 9bd16962a..e2e2d82df 100644 --- a/packages/rest/src/helpers/members/editMember.ts +++ b/packages/rest/src/helpers/members/editMember.ts @@ -5,7 +5,7 @@ import type { Member } from '../../transformers/member.js' /** * Edits a member's properties. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the member of. * @param userId - The user ID of the member to edit. * @param options - The parameters for the edit of the user. diff --git a/packages/rest/src/helpers/members/getAvatarUrl.ts b/packages/rest/src/helpers/members/getAvatarUrl.ts index d4e602a11..09bb1574b 100644 --- a/packages/rest/src/helpers/members/getAvatarUrl.ts +++ b/packages/rest/src/helpers/members/getAvatarUrl.ts @@ -5,7 +5,7 @@ import type { RestManager } from '../../restManager.js' /** * Builds a URL to a user's avatar stored in the Discord CDN. * - * @param bot - The bot instance to use to build the URL. + * @param rest - The rest manager to use to build the URL. * @param userId - The ID of the user to get the avatar of. * @param discriminator - The user's discriminator. (4-digit tag after the hashtag.) * @param options - The parameters for the building of the URL. diff --git a/packages/rest/src/helpers/members/getDmChannel.ts b/packages/rest/src/helpers/members/getDmChannel.ts index a01a09256..f560ac19e 100644 --- a/packages/rest/src/helpers/members/getDmChannel.ts +++ b/packages/rest/src/helpers/members/getDmChannel.ts @@ -5,7 +5,7 @@ import type { Channel } from '../../transformers/channel.js' /** * Gets or creates a DM channel with a user. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param userId - The ID of the user to create the DM channel with. * @returns An instance of {@link Channel}. * diff --git a/packages/rest/src/helpers/members/getMember.ts b/packages/rest/src/helpers/members/getMember.ts index 0f8a299e2..53b4db8ca 100644 --- a/packages/rest/src/helpers/members/getMember.ts +++ b/packages/rest/src/helpers/members/getMember.ts @@ -5,7 +5,7 @@ import type { Member } from '../../transformers/member.js' /** * Gets the member object by user ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the member object for. * @param userId - The ID of the user to get the member object for. * @returns An instance of {@link Member}. diff --git a/packages/rest/src/helpers/members/getMembers.ts b/packages/rest/src/helpers/members/getMembers.ts index bbb45a6c8..f57977fc1 100644 --- a/packages/rest/src/helpers/members/getMembers.ts +++ b/packages/rest/src/helpers/members/getMembers.ts @@ -8,7 +8,7 @@ import type { Member } from '../../transformers/member.js' /** * Gets the list of members for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the list of members for. * @param options - The parameters for the fetching of the members. * @returns A collection of {@link Member} objects assorted by user ID. diff --git a/packages/rest/src/helpers/members/kickMember.ts b/packages/rest/src/helpers/members/kickMember.ts index 0d00abe27..a87966e65 100644 --- a/packages/rest/src/helpers/members/kickMember.ts +++ b/packages/rest/src/helpers/members/kickMember.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Kicks a member from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to kick the member from. * @param userId - The user ID of the member to kick from the guild. * diff --git a/packages/rest/src/helpers/members/pruneMembers.ts b/packages/rest/src/helpers/members/pruneMembers.ts index 801d37898..d45da84b4 100644 --- a/packages/rest/src/helpers/members/pruneMembers.ts +++ b/packages/rest/src/helpers/members/pruneMembers.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Initiates the process of pruning inactive members. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to prune the members of. * @param options - The parameters for the pruning of members. * @returns A number indicating how many members were pruned. diff --git a/packages/rest/src/helpers/members/searchMembers.ts b/packages/rest/src/helpers/members/searchMembers.ts index 043495a3e..ad9b21ec5 100644 --- a/packages/rest/src/helpers/members/searchMembers.ts +++ b/packages/rest/src/helpers/members/searchMembers.ts @@ -11,7 +11,7 @@ import type { Member } from '../../transformers/member.js' /** * Gets the list of members whose usernames or nicknames start with a provided string. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to search in. * @param query - The string to match usernames or nicknames against. * @param options - The parameters for searching through the members. diff --git a/packages/rest/src/helpers/members/unbanMember.ts b/packages/rest/src/helpers/members/unbanMember.ts index ac40e55d5..68efbe46e 100644 --- a/packages/rest/src/helpers/members/unbanMember.ts +++ b/packages/rest/src/helpers/members/unbanMember.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Unbans a user from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to unban the user in. * @param userId - The ID of the user to unban. * diff --git a/packages/rest/src/helpers/messages/crosspostMessage.ts b/packages/rest/src/helpers/messages/crosspostMessage.ts index 7294f5b33..aecb3826b 100644 --- a/packages/rest/src/helpers/messages/crosspostMessage.ts +++ b/packages/rest/src/helpers/messages/crosspostMessage.ts @@ -7,7 +7,7 @@ export const publishMessage = crosspostMessage /** * Cross-posts a message posted in an announcement channel to subscribed channels. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the announcement channel. * @param messageId - The ID of the message to cross-post. * @returns An instance of the cross-posted {@link Message}. diff --git a/packages/rest/src/helpers/messages/deleteMessage.ts b/packages/rest/src/helpers/messages/deleteMessage.ts index b4bf4670c..8680b0b5a 100644 --- a/packages/rest/src/helpers/messages/deleteMessage.ts +++ b/packages/rest/src/helpers/messages/deleteMessage.ts @@ -7,7 +7,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a message from a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to delete the message from. * @param messageId - The ID of the message to delete from the channel. * diff --git a/packages/rest/src/helpers/messages/deleteMessages.ts b/packages/rest/src/helpers/messages/deleteMessages.ts index cabc13cce..cfe84ef3c 100644 --- a/packages/rest/src/helpers/messages/deleteMessages.ts +++ b/packages/rest/src/helpers/messages/deleteMessages.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes multiple messages from a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to delete the messages from. * @param messageIds - The IDs of the messages to delete from the channel. * diff --git a/packages/rest/src/helpers/messages/editMessage.ts b/packages/rest/src/helpers/messages/editMessage.ts index 48dae6be3..efe91f98e 100644 --- a/packages/rest/src/helpers/messages/editMessage.ts +++ b/packages/rest/src/helpers/messages/editMessage.ts @@ -14,7 +14,7 @@ import type { Message } from '../../transformers/message.js' /** * Edits a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to edit the message in. * @param messageId - The IDs of the message to edit. * @param options - The parameters for the edit of the message. diff --git a/packages/rest/src/helpers/messages/getMessage.ts b/packages/rest/src/helpers/messages/getMessage.ts index 2dc08d9c3..d3c0d9220 100644 --- a/packages/rest/src/helpers/messages/getMessage.ts +++ b/packages/rest/src/helpers/messages/getMessage.ts @@ -5,7 +5,7 @@ import type { Message } from '../../transformers/message.js' /** * Gets a message from a channel by the ID of the message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel from which to get the message. * @param messageId - The ID of the message to get. * @returns An instance of {@link Message}. diff --git a/packages/rest/src/helpers/messages/getMessages.ts b/packages/rest/src/helpers/messages/getMessages.ts index 7f4b895f6..5e32f2457 100644 --- a/packages/rest/src/helpers/messages/getMessages.ts +++ b/packages/rest/src/helpers/messages/getMessages.ts @@ -6,7 +6,7 @@ import type { Message } from '../../transformers/message.js' /** * Gets multiple messages from a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel from which to get the messages. * @param options - The parameters for the fetching of the messages. * @returns A collection of {@link Message} objects assorted by message ID. diff --git a/packages/rest/src/helpers/messages/getPinnedMessages.ts b/packages/rest/src/helpers/messages/getPinnedMessages.ts index 1219aa7b5..3f0a70c87 100644 --- a/packages/rest/src/helpers/messages/getPinnedMessages.ts +++ b/packages/rest/src/helpers/messages/getPinnedMessages.ts @@ -6,7 +6,7 @@ import type { Message } from '../../transformers/message.js' /** * Gets the pinned messages for a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to get the pinned messages for. * @returns A collection of {@link Message} objects assorted by message ID. * diff --git a/packages/rest/src/helpers/messages/pinMessage.ts b/packages/rest/src/helpers/messages/pinMessage.ts index 1bf1b5134..a7cb16c06 100644 --- a/packages/rest/src/helpers/messages/pinMessage.ts +++ b/packages/rest/src/helpers/messages/pinMessage.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Pins a message in a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel where the message is to be pinned. * @param messageId - The ID of the message to pin. * diff --git a/packages/rest/src/helpers/messages/reactions/addReaction.ts b/packages/rest/src/helpers/messages/reactions/addReaction.ts index 2f1abab05..2b5e1070f 100644 --- a/packages/rest/src/helpers/messages/reactions/addReaction.ts +++ b/packages/rest/src/helpers/messages/reactions/addReaction.ts @@ -7,7 +7,7 @@ import { processReactionString } from './getReactions.js' /** * Adds a reaction to a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to add a reaction to is in. * @param messageId - The ID of the message to add a reaction to. * @param reaction - The reaction to add to the message. diff --git a/packages/rest/src/helpers/messages/reactions/addReactions.ts b/packages/rest/src/helpers/messages/reactions/addReactions.ts index 7fdcd744c..efbb7d50c 100644 --- a/packages/rest/src/helpers/messages/reactions/addReactions.ts +++ b/packages/rest/src/helpers/messages/reactions/addReactions.ts @@ -8,7 +8,7 @@ import type { RestManager } from '../../../restManager.js' * * This function uses the `addReaction()` helper behind the scenes. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to add reactions to is in. * @param messageId - The ID of the message to add the reactions to. * @param reactions - The reactions to add to the message. diff --git a/packages/rest/src/helpers/messages/reactions/deleteReaction.ts b/packages/rest/src/helpers/messages/reactions/deleteReaction.ts index ee515e949..e3c959006 100644 --- a/packages/rest/src/helpers/messages/reactions/deleteReaction.ts +++ b/packages/rest/src/helpers/messages/reactions/deleteReaction.ts @@ -7,7 +7,7 @@ import { processReactionString } from './getReactions.js' /** * Deletes a reaction added by the bot user from a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to delete the reaction from is in. * @param messageId - The ID of the message to delete the reaction from. * @param reaction - The reaction to delete from the message. @@ -41,7 +41,7 @@ export async function deleteOwnReaction ( /** * Deletes a user's reaction from a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to delete the reaction from is in. * @param messageId - The ID of the message to delete the reaction from. * @param userId - The ID of the user whose reaction to delete. diff --git a/packages/rest/src/helpers/messages/reactions/deleteReactionsAll.ts b/packages/rest/src/helpers/messages/reactions/deleteReactionsAll.ts index bfd8110c6..925056875 100644 --- a/packages/rest/src/helpers/messages/reactions/deleteReactionsAll.ts +++ b/packages/rest/src/helpers/messages/reactions/deleteReactionsAll.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../../restManager.js' /** * Deletes all reactions for all emojis from a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to delete the reactions from is in. * @param messageId - The ID of the message to delete the reactions from. * diff --git a/packages/rest/src/helpers/messages/reactions/deleteReactionsEmoji.ts b/packages/rest/src/helpers/messages/reactions/deleteReactionsEmoji.ts index d51e3dcf8..026f1093f 100644 --- a/packages/rest/src/helpers/messages/reactions/deleteReactionsEmoji.ts +++ b/packages/rest/src/helpers/messages/reactions/deleteReactionsEmoji.ts @@ -5,7 +5,7 @@ import { processReactionString } from './getReactions.js' /** * Deletes all reactions for an emoji from a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to delete the reactions from is in. * @param messageId - The ID of the message to delete the reactions from. * @param reaction - The reaction to remove from the message. diff --git a/packages/rest/src/helpers/messages/reactions/getReactions.ts b/packages/rest/src/helpers/messages/reactions/getReactions.ts index ba1c3f284..1f811b833 100644 --- a/packages/rest/src/helpers/messages/reactions/getReactions.ts +++ b/packages/rest/src/helpers/messages/reactions/getReactions.ts @@ -7,7 +7,7 @@ import type { User } from '../../../transformers/member.js' /** * Gets the list of users that reacted with an emoji to a message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel the message to get the users for is in. * @param messageId - The ID of the message to get the users for. * @param reaction - The reaction for which to get the users. diff --git a/packages/rest/src/helpers/messages/sendMessage.ts b/packages/rest/src/helpers/messages/sendMessage.ts index b1904392d..e260e23b2 100644 --- a/packages/rest/src/helpers/messages/sendMessage.ts +++ b/packages/rest/src/helpers/messages/sendMessage.ts @@ -14,7 +14,7 @@ import type { Message } from '../../transformers/message.js' /** * Sends a message to a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to send the message in. * @param options - The parameters for the creation of the message. * @returns An instance of the created {@link Message}. diff --git a/packages/rest/src/helpers/messages/unpinMessage.ts b/packages/rest/src/helpers/messages/unpinMessage.ts index 6fc274278..f909b2dbf 100644 --- a/packages/rest/src/helpers/messages/unpinMessage.ts +++ b/packages/rest/src/helpers/messages/unpinMessage.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Unpins a pinned message in a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel where the message is pinned. * @param messageId - The ID of the message to unpin. * diff --git a/packages/rest/src/helpers/roles/addRole.ts b/packages/rest/src/helpers/roles/addRole.ts index 6d2be1dbc..f586a821a 100644 --- a/packages/rest/src/helpers/roles/addRole.ts +++ b/packages/rest/src/helpers/roles/addRole.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Adds a role to a member. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the member to add the role to is in. * @param userId - The user ID of the member to add the role to. * @param roleId - The ID of the role to add to the member. diff --git a/packages/rest/src/helpers/roles/createRole.ts b/packages/rest/src/helpers/roles/createRole.ts index 556638ecc..058ff489b 100644 --- a/packages/rest/src/helpers/roles/createRole.ts +++ b/packages/rest/src/helpers/roles/createRole.ts @@ -11,7 +11,7 @@ import type { Role } from '../../transformers/role.js' /** * Creates a role in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to create the role in. * @param options - The parameters for the creation of the role. * @returns An instance of the created {@link Role}. diff --git a/packages/rest/src/helpers/roles/deleteRole.ts b/packages/rest/src/helpers/roles/deleteRole.ts index 132cc215b..8fee5670d 100644 --- a/packages/rest/src/helpers/roles/deleteRole.ts +++ b/packages/rest/src/helpers/roles/deleteRole.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a role from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to delete the role from. * @param roleId - The ID of the role to delete. * diff --git a/packages/rest/src/helpers/roles/editRole.ts b/packages/rest/src/helpers/roles/editRole.ts index f9c529bbf..7ded7102e 100644 --- a/packages/rest/src/helpers/roles/editRole.ts +++ b/packages/rest/src/helpers/roles/editRole.ts @@ -11,7 +11,7 @@ import type { Role } from '../../transformers/role.js' /** * Edits a role in a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the role in. * @param roleId - The ID of the role to edit. * @param options - The parameters for the edit of the role. diff --git a/packages/rest/src/helpers/roles/editRolePositions.ts b/packages/rest/src/helpers/roles/editRolePositions.ts index a3e3495f7..8e32b2083 100644 --- a/packages/rest/src/helpers/roles/editRolePositions.ts +++ b/packages/rest/src/helpers/roles/editRolePositions.ts @@ -6,7 +6,7 @@ import type { Role } from '../../transformers/role.js' /** * Edits the positions of a set of roles. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit the role positions in. * @param options - The parameters for the edit of the role positions. * @returns A collection of {@link Role} objects assorted by role ID. diff --git a/packages/rest/src/helpers/roles/getRoles.ts b/packages/rest/src/helpers/roles/getRoles.ts index ef9461d9b..0ed0832c9 100644 --- a/packages/rest/src/helpers/roles/getRoles.ts +++ b/packages/rest/src/helpers/roles/getRoles.ts @@ -6,7 +6,7 @@ import type { Role } from '../../transformers/role.js' /** * Gets the list of roles for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the list of roles for. * @returns A collection of {@link Role} objects assorted by role ID. * diff --git a/packages/rest/src/helpers/roles/removeRole.ts b/packages/rest/src/helpers/roles/removeRole.ts index ebdf3f28b..6d3963b5f 100644 --- a/packages/rest/src/helpers/roles/removeRole.ts +++ b/packages/rest/src/helpers/roles/removeRole.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Removes a role from a member. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the member to remove the role from is in. * @param userId - The user ID of the member to remove the role from. * @param roleId - The ID of the role to remove from the member. diff --git a/packages/rest/src/helpers/templates/createGuildTemplate.ts b/packages/rest/src/helpers/templates/createGuildTemplate.ts index 8e340b15f..ba5eca83d 100644 --- a/packages/rest/src/helpers/templates/createGuildTemplate.ts +++ b/packages/rest/src/helpers/templates/createGuildTemplate.ts @@ -5,7 +5,7 @@ import type { DiscordTemplate, BigString, DiscordCreateTemplate } from '@discord /** * Creates a template from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to create the template from. * @param options - The parameters for the creation of the template. * @returns An instance of the created {@link Template}. diff --git a/packages/rest/src/helpers/templates/deleteGuildTemplate.ts b/packages/rest/src/helpers/templates/deleteGuildTemplate.ts index 8703e773b..b876ded83 100644 --- a/packages/rest/src/helpers/templates/deleteGuildTemplate.ts +++ b/packages/rest/src/helpers/templates/deleteGuildTemplate.ts @@ -4,7 +4,7 @@ import type { BigString } from '@discordeno/types' /** * Deletes a template from a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to delete the template from. * @param templateCode - The code of the template to delete. * diff --git a/packages/rest/src/helpers/templates/editGuildTemplate.ts b/packages/rest/src/helpers/templates/editGuildTemplate.ts index 7e86ef42b..b5e6a1a1d 100644 --- a/packages/rest/src/helpers/templates/editGuildTemplate.ts +++ b/packages/rest/src/helpers/templates/editGuildTemplate.ts @@ -5,7 +5,7 @@ import type { DiscordTemplate, BigString, DiscordModifyGuildTemplate } from '@di /** * Edits a template's settings. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to edit a template of. * @param templateCode - The code of the template to edit. * @param options - The parameters for the edit of the template. diff --git a/packages/rest/src/helpers/templates/getGuildTemplate.ts b/packages/rest/src/helpers/templates/getGuildTemplate.ts index 60bfc0b13..24c4431c1 100644 --- a/packages/rest/src/helpers/templates/getGuildTemplate.ts +++ b/packages/rest/src/helpers/templates/getGuildTemplate.ts @@ -5,7 +5,7 @@ import type { DiscordTemplate } from '@discordeno/types' /** * Gets a template by its code. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param templateCode - The code of the template to get. * @returns An instance of {@link Template}. * diff --git a/packages/rest/src/helpers/templates/getGuildTemplates.ts b/packages/rest/src/helpers/templates/getGuildTemplates.ts index a493305e3..4af650e57 100644 --- a/packages/rest/src/helpers/templates/getGuildTemplates.ts +++ b/packages/rest/src/helpers/templates/getGuildTemplates.ts @@ -6,7 +6,7 @@ import { Collection } from '@discordeno/utils' /** * Gets the list of templates for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the list of templates for. * @returns A collection of {@link Template} objects assorted by template code. * diff --git a/packages/rest/src/helpers/templates/syncGuildTemplate.ts b/packages/rest/src/helpers/templates/syncGuildTemplate.ts index f226e07ab..455c59444 100644 --- a/packages/rest/src/helpers/templates/syncGuildTemplate.ts +++ b/packages/rest/src/helpers/templates/syncGuildTemplate.ts @@ -5,7 +5,7 @@ import type { DiscordTemplate, BigString } from '@discordeno/types' /** * Synchronises a template with the current state of a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to synchronise a template of. * @returns An instance of the edited {@link Template}. * diff --git a/packages/rest/src/helpers/webhooks/createWebhook.ts b/packages/rest/src/helpers/webhooks/createWebhook.ts index 24d8825f5..d3fcbb598 100644 --- a/packages/rest/src/helpers/webhooks/createWebhook.ts +++ b/packages/rest/src/helpers/webhooks/createWebhook.ts @@ -6,7 +6,7 @@ import type { Webhook } from '../../transformers/webhook.js' /** * Creates a webhook. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel to create the webhook in. * @param options - The parameters for the creation of the webhook. * @returns An instance of the created {@link Webhook}. diff --git a/packages/rest/src/helpers/webhooks/deleteWebhook.ts b/packages/rest/src/helpers/webhooks/deleteWebhook.ts index a321d958e..9324dfa8b 100644 --- a/packages/rest/src/helpers/webhooks/deleteWebhook.ts +++ b/packages/rest/src/helpers/webhooks/deleteWebhook.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a webhook. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to delete. * * @remarks diff --git a/packages/rest/src/helpers/webhooks/deleteWebhookMessage.ts b/packages/rest/src/helpers/webhooks/deleteWebhookMessage.ts index bab937f06..c3f1eb464 100644 --- a/packages/rest/src/helpers/webhooks/deleteWebhookMessage.ts +++ b/packages/rest/src/helpers/webhooks/deleteWebhookMessage.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a webhook message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to delete the message belonging to. * @param token - The webhook token, used to manage the webhook. * @param messageId - The ID of the message to delete. diff --git a/packages/rest/src/helpers/webhooks/deleteWebhookWithToken.ts b/packages/rest/src/helpers/webhooks/deleteWebhookWithToken.ts index 06cc6e6fa..12f69c1f2 100644 --- a/packages/rest/src/helpers/webhooks/deleteWebhookWithToken.ts +++ b/packages/rest/src/helpers/webhooks/deleteWebhookWithToken.ts @@ -4,7 +4,7 @@ import type { RestManager } from '../../restManager.js' /** * Deletes a webhook message using the webhook token, thereby bypassing the need for authentication + permissions. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to delete the message belonging to. * @param token - The webhook token, used to delete the webhook. * diff --git a/packages/rest/src/helpers/webhooks/editOriginalWebhookMessage.ts b/packages/rest/src/helpers/webhooks/editOriginalWebhookMessage.ts index d352e4cb5..625acb0ac 100644 --- a/packages/rest/src/helpers/webhooks/editOriginalWebhookMessage.ts +++ b/packages/rest/src/helpers/webhooks/editOriginalWebhookMessage.ts @@ -7,7 +7,7 @@ import type { InteractionCallbackData } from '../../types' /** * Edits the original webhook message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to edit the original message of. * @param token - The webhook token, used to edit the message. * @param options - The parameters for the edit of the message. diff --git a/packages/rest/src/helpers/webhooks/editWebhook.ts b/packages/rest/src/helpers/webhooks/editWebhook.ts index 88e02ed06..dd61456aa 100644 --- a/packages/rest/src/helpers/webhooks/editWebhook.ts +++ b/packages/rest/src/helpers/webhooks/editWebhook.ts @@ -5,7 +5,7 @@ import type { Webhook } from '../../transformers/webhook.js' /** * Edits a webhook. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to edit. * @returns An instance of the edited {@link Webhook}. * diff --git a/packages/rest/src/helpers/webhooks/editWebhookMessage.ts b/packages/rest/src/helpers/webhooks/editWebhookMessage.ts index 34c04250d..4355044f4 100644 --- a/packages/rest/src/helpers/webhooks/editWebhookMessage.ts +++ b/packages/rest/src/helpers/webhooks/editWebhookMessage.ts @@ -7,7 +7,7 @@ import type { InteractionCallbackData } from '../../types' /** * Edits a webhook message. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to edit the message of. * @param token - The webhook token, used to edit the message. * @param messageId - The ID of the message to edit. diff --git a/packages/rest/src/helpers/webhooks/editWebhookWithToken.ts b/packages/rest/src/helpers/webhooks/editWebhookWithToken.ts index d88f18d7f..6b88f06f6 100644 --- a/packages/rest/src/helpers/webhooks/editWebhookWithToken.ts +++ b/packages/rest/src/helpers/webhooks/editWebhookWithToken.ts @@ -6,7 +6,7 @@ import type { ModifyWebhook } from './editWebhook.js' /** * Edits a webhook using the webhook token, thereby bypassing the need for authentication + permissions. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to edit. * @param token - The webhook token, used to edit the webhook. * @returns An instance of the edited {@link Webhook}. diff --git a/packages/rest/src/helpers/webhooks/executeWebhook.ts b/packages/rest/src/helpers/webhooks/executeWebhook.ts index 962f1b02f..ecf5a1980 100644 --- a/packages/rest/src/helpers/webhooks/executeWebhook.ts +++ b/packages/rest/src/helpers/webhooks/executeWebhook.ts @@ -15,7 +15,7 @@ export const sendWebhookMessage = executeWebhook /** * Executes a webhook, causing a message to be posted in the channel configured for the webhook. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to execute. * @param token - The webhook token, used to execute the webhook. * @param options - The parameters for the execution of the webhook. diff --git a/packages/rest/src/helpers/webhooks/getChannelWebhooks.ts b/packages/rest/src/helpers/webhooks/getChannelWebhooks.ts index e3b1b9a7a..d80f60649 100644 --- a/packages/rest/src/helpers/webhooks/getChannelWebhooks.ts +++ b/packages/rest/src/helpers/webhooks/getChannelWebhooks.ts @@ -6,7 +6,7 @@ import type { Webhook } from '../../transformers/webhook.js' /** * Gets a list of webhooks for a channel. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param channelId - The ID of the channel which to get the webhooks of. * @returns A collection of {@link Webhook} objects assorted by webhook ID. * diff --git a/packages/rest/src/helpers/webhooks/getGuildWebhooks.ts b/packages/rest/src/helpers/webhooks/getGuildWebhooks.ts index 4e690b7bd..b89ddc366 100644 --- a/packages/rest/src/helpers/webhooks/getGuildWebhooks.ts +++ b/packages/rest/src/helpers/webhooks/getGuildWebhooks.ts @@ -6,7 +6,7 @@ import type { Webhook } from '../../transformers/webhook.js' /** * Gets the list of webhooks for a guild. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get the list of webhooks for. * @returns A collection of {@link Webhook} objects assorted by webhook ID. * diff --git a/packages/rest/src/helpers/webhooks/getWebhook.ts b/packages/rest/src/helpers/webhooks/getWebhook.ts index 9667880b6..e5d3b8a17 100644 --- a/packages/rest/src/helpers/webhooks/getWebhook.ts +++ b/packages/rest/src/helpers/webhooks/getWebhook.ts @@ -5,7 +5,7 @@ import type { Webhook } from '../../transformers/webhook.js' /** * Gets a webhook by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to get. * @returns An instance of {@link Webhook}. * diff --git a/packages/rest/src/helpers/webhooks/getWebhookMessage.ts b/packages/rest/src/helpers/webhooks/getWebhookMessage.ts index 6c42b993a..4883ee861 100644 --- a/packages/rest/src/helpers/webhooks/getWebhookMessage.ts +++ b/packages/rest/src/helpers/webhooks/getWebhookMessage.ts @@ -9,7 +9,7 @@ export interface GetWebhookMessageOptions { /** * Gets a webhook message by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to get a message of. * @param token - The webhook token, used to get webhook messages. * @param messageId - the ID of the webhook message to get. diff --git a/packages/rest/src/helpers/webhooks/getWebhookWithToken.ts b/packages/rest/src/helpers/webhooks/getWebhookWithToken.ts index 7ca3fce51..a6e68240a 100644 --- a/packages/rest/src/helpers/webhooks/getWebhookWithToken.ts +++ b/packages/rest/src/helpers/webhooks/getWebhookWithToken.ts @@ -5,7 +5,7 @@ import type { Webhook } from '../../transformers/webhook.js' /** * Gets a webhook using the webhook token, thereby bypassing the need for authentication + permissions. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param webhookId - The ID of the webhook to get. * @param token - The webhook token, used to get the webhook. * @returns An instance of {@link Webhook}. diff --git a/packages/rest/src/noCheckHelpers/guilds/getGuild.ts b/packages/rest/src/noCheckHelpers/guilds/getGuild.ts index 0110dacf7..3c87b8a88 100644 --- a/packages/rest/src/noCheckHelpers/guilds/getGuild.ts +++ b/packages/rest/src/noCheckHelpers/guilds/getGuild.ts @@ -8,7 +8,7 @@ import type { Guild } from '../../transformers/guild.js' /** * Gets a guild by its ID. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild to get. * @param options - The parameters for the fetching of the guild. * @returns An instance of {@link Guild}. diff --git a/packages/rest/src/noCheckHelpers/guilds/voice/connectToVoiceChannel.ts b/packages/rest/src/noCheckHelpers/guilds/voice/connectToVoiceChannel.ts index 47e004d47..31a1e7843 100644 --- a/packages/rest/src/noCheckHelpers/guilds/voice/connectToVoiceChannel.ts +++ b/packages/rest/src/noCheckHelpers/guilds/voice/connectToVoiceChannel.ts @@ -11,7 +11,7 @@ import type { RestManager } from '../../../restManager.js' * * This function sends the _Update Voice State_ gateway command over the gateway behind the scenes. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the voice channel to leave is in. * * @remarks diff --git a/packages/rest/src/noCheckHelpers/guilds/voice/leaveVoiceChannel.ts b/packages/rest/src/noCheckHelpers/guilds/voice/leaveVoiceChannel.ts index 6115ddbac..16935a8be 100644 --- a/packages/rest/src/noCheckHelpers/guilds/voice/leaveVoiceChannel.ts +++ b/packages/rest/src/noCheckHelpers/guilds/voice/leaveVoiceChannel.ts @@ -10,7 +10,7 @@ import type { RestManager } from '../../../restManager.js' * * This function sends the _Update Voice State_ gateway command over the gateway behind the scenes. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param guildId - The ID of the guild the voice channel to leave is in. * * @remarks diff --git a/packages/rest/src/noCheckHelpers/members/fetchMembers.ts b/packages/rest/src/noCheckHelpers/members/fetchMembers.ts index db13ce5e3..c0f2cbe07 100644 --- a/packages/rest/src/noCheckHelpers/members/fetchMembers.ts +++ b/packages/rest/src/noCheckHelpers/members/fetchMembers.ts @@ -9,7 +9,7 @@ import type { RestManager } from '../../restManager.js' /** * Fetches the list of members for a guild over the gateway. * - * @param bot - The bot instance to use to make the requests. + * @param rest - The rest manager to use to make the requests. * @param guildId - The ID of the guild to get the list of members for. * @param options - The parameters for the fetching of the members. * diff --git a/packages/rest/src/noCheckHelpers/templates/createGuildFromTemplate.ts b/packages/rest/src/noCheckHelpers/templates/createGuildFromTemplate.ts index 571b3ae47..650242b07 100644 --- a/packages/rest/src/noCheckHelpers/templates/createGuildFromTemplate.ts +++ b/packages/rest/src/noCheckHelpers/templates/createGuildFromTemplate.ts @@ -8,7 +8,7 @@ import type { Guild } from '../../transformers/guild.js' /** * Creates a guild from a template. * - * @param bot - The bot instance to use to make the request. + * @param rest - The rest manager to use to make the request. * @param templateCode - The code of the template. * @param options - The parameters for the creation of the guild. * @returns An instance of the created {@link Guild}.