mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -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]
|
||||
}),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user