fix: modal method (#170)

This commit is contained in:
NoBody 2024-03-30 14:51:57 -05:00 committed by GitHub
parent 5baa921b7c
commit ad08a85dea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@ import {
type InteractionMessageUpdateBodyRequest, type InteractionMessageUpdateBodyRequest,
type UnionToTuple, type UnionToTuple,
type When, type When,
type ModalCreateBodyRequest,
} from '../../common'; } from '../../common';
import { import {
Message, Message,
@ -73,8 +74,8 @@ export class MenuCommandContext<
return this.interaction.write(body, fetchReply); return this.interaction.write(body, fetchReply);
} }
get modal() { modal(body: ModalCreateBodyRequest) {
return this.interaction.modal; return this.interaction.modal(body);
} }
deferReply(ephemeral = false) { deferReply(ephemeral = false) {