fix: interaction.respond typing

This commit is contained in:
Skillz
2023-04-28 14:14:29 -05:00
parent e2d86ea644
commit 4dd7ca71c5
+2 -1
View File
@@ -19,7 +19,7 @@ import type { Message } from './message.js'
import type { Role } from './role.js'
import type { User } from './user.js'
export interface Interaction {
export interface Interaction extends BaseInteraction {
/** The bot object */
bot: Bot
/** Whether or not this interaction has been replied to. */
@@ -67,6 +67,7 @@ export interface Interaction {
}
export interface BaseInteraction {
/** Sends a response to an interaction. */
respond: (response: string | InteractionResponse, options: { private: boolean }) => Promise<CamelizedDiscordMessage | void>
}