mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
refactor(bot)!: interaction.data.guildId is useless (#2982)
This commit is contained in:
@@ -47,7 +47,7 @@ export interface Interaction {
|
||||
options?: InteractionDataOption[]
|
||||
id?: bigint
|
||||
targetId?: bigint
|
||||
guildId?: bigint
|
||||
// guildId?: bigint
|
||||
}
|
||||
/** The selected language of the invoking user */
|
||||
locale?: string
|
||||
@@ -88,7 +88,7 @@ export function transformInteraction(bot: Bot, payload: DiscordInteraction): Int
|
||||
resolved: payload.data.resolved ? transformInteractionDataResolved(bot, payload.data.resolved, guildId) : undefined,
|
||||
options: payload.data.options?.map((opt) => bot.transformers.interactionDataOptions(bot, opt)),
|
||||
targetId: payload.data.target_id ? bot.transformers.snowflake(payload.data.target_id) : undefined,
|
||||
guildId: payload.data.guild_id ? bot.transformers.snowflake(payload.data.guild_id) : undefined,
|
||||
// guildId: payload.data.guild_id ? bot.transformers.snowflake(payload.data.guild_id) : undefined,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user