mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix(types)!: Fix discordeno/user.ts (#4365)
Co-authored-by: Link <link20050703@gmail.com>
This commit is contained in:
@@ -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>[]>
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user