fix(types)!: Fix discordeno/user.ts (#4365)

Co-authored-by: Link <link20050703@gmail.com>
This commit is contained in:
Fleny
2025-08-20 11:11:14 -07:00
committed by GitHub
co-authored by Link
parent df3cfebb86
commit 27e53b801a
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -12,6 +12,7 @@ import type {
CreateChannelInvite,
CreateForumPostWithMessage,
CreateGlobalApplicationCommandOptions,
CreateGroupDmOptions,
CreateGuildApplicationCommandOptions,
CreateGuildBan,
CreateGuildBulkBan,
@@ -68,7 +69,6 @@ import type {
GetChannelPinsOptions,
GetEntitlements,
GetGlobalApplicationCommandsOptions,
GetGroupDmOptions,
GetGuildApplicationCommandsOptions,
GetGuildAuditLog,
GetGuildPruneCountQuery,
@@ -976,7 +976,7 @@ export type BotHelpers<TProps extends TransformersDesiredProperties, TBehavior e
getChannels: (guildId: BigString) => Promise<SetupDesiredProps<Channel, TProps, TBehavior>[]>
getChannelWebhooks: (channelId: BigString) => Promise<SetupDesiredProps<Webhook, TProps, TBehavior>[]>
getDmChannel: (userId: BigString) => Promise<SetupDesiredProps<Channel, TProps, TBehavior>>
getGroupDmChannel: (options: GetGroupDmOptions) => Promise<SetupDesiredProps<Channel, TProps, TBehavior>>
getGroupDmChannel: (options: CreateGroupDmOptions) => Promise<SetupDesiredProps<Channel, TProps, TBehavior>>
getEmoji: (guildId: BigString, emojiId: BigString) => Promise<SetupDesiredProps<Emoji, TProps, TBehavior>>
getApplicationEmoji: (emojiId: BigString) => Promise<SetupDesiredProps<Emoji, TProps, TBehavior>>
getEmojis: (guildId: BigString) => Promise<SetupDesiredProps<Emoji, TProps, TBehavior>[]>
+2 -2
View File
@@ -12,6 +12,7 @@ import type {
CreateChannelInvite,
CreateForumPostWithMessage,
CreateGlobalApplicationCommandOptions,
CreateGroupDmOptions,
CreateGuildApplicationCommandOptions,
CreateGuildBan,
CreateGuildBulkBan,
@@ -104,7 +105,6 @@ import type {
GetChannelPinsOptions,
GetEntitlements,
GetGlobalApplicationCommandsOptions,
GetGroupDmOptions,
GetGuildApplicationCommandsOptions,
GetGuildAuditLog,
GetGuildPruneCountQuery,
@@ -1726,7 +1726,7 @@ export interface RestManager {
*
* @see {@link https://discord.com/developers/docs/resources/user#create-group-dm}
*/
getGroupDmChannel: (options: GetGroupDmOptions) => Promise<Camelize<DiscordChannel>>
getGroupDmChannel: (options: CreateGroupDmOptions) => Promise<Camelize<DiscordChannel>>
/**
* Gets an emoji by its ID.
*
+1 -1
View File
@@ -15,7 +15,7 @@ export interface GetUserGuilds {
}
/** https://discord.com/developers/docs/resources/user#create-group-dm-json-params */
export interface GetGroupDmOptions {
export interface CreateGroupDmOptions {
/** Access tokens of users that have granted your app the `gdm.join` scope */
accessTokens: string[]
/** A mapping of user ids to their respective nicknames */