Romejanic / slasher

A framework to simplify the creation of Discord bots.
MIT License
3 stars 2 forks source link

Add specialized methods for modals #5

Closed Romejanic closed 2 years ago

Romejanic commented 2 years ago

There should be special methods integrated for the purpose of sending modals and awaiting a submission response. These could probably just be proxy methods for the command interaction class, but will improve the process of using modals with Slasher.

e.g.

let modal = ...;

await ctx.showModal(modal);
let response = await ctx.modalResponse();

Alternatively

let modal = ...;
let response = await ctx.modalResponse(modal);
Romejanic commented 2 years ago

Added in next release