fix(types)!: Sort & fix interactions.ts types (#4290)

* Sort & fix interactions.ts types

* Fix type errors

* Apply suggestions from code review

Co-authored-by: Link <lts20050703@gmail.com>

---------

Co-authored-by: Link <lts20050703@gmail.com>
This commit is contained in:
Fleny
2025-08-11 18:33:47 +02:00
committed by GitHub
co-authored by Link
parent b30e2ff259
commit 088de8c417
3 changed files with 127 additions and 39 deletions
@@ -221,6 +221,7 @@ export function transformInteractionDataResolved(
if (payload.resolved.messages) {
transformed.messages = new Collection(
Object.entries(payload.resolved.messages).map(([_id, value]) => {
// @ts-expect-error TODO: Deal with partials
const message: Message = bot.transformers.message(bot, { message: value, shardId: payload.shardId })
return [message.id, message]
}),
+2 -2
View File
@@ -197,13 +197,13 @@ export interface ApplicationInstallParams {
export interface ApplicationCommand {
options?: ApplicationCommandOption[]
description?: string
description: string
guildId?: bigint
nameLocalizations?: Localization
descriptionLocalizations?: Localization
defaultMemberPermissions?: bigint
type?: ApplicationCommandTypes
version?: string
version: string
id: bigint
name: string
applicationId: bigint