feat: Update Document

This commit is contained in:
March 7th 2022-06-14 00:03:51 +07:00
parent dd2912fb8d
commit 3c7c574dd2
2 changed files with 12 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -139,6 +139,17 @@ class Modal {
* @param {Snowflake} channelId ChannelID of the channel to send the modal to
* @param {...ModalReplyData} data Data to send with the modal
* @returns {Promise<boolean>}
* @example
* // With Event
* client.on('interactionModalCreate', modal => {
* modal.reply('guildId', 'channelId', {
* customId: 'code',
* value: '1+1'
* }, {
* customId: 'message',
* value: 'hello'
* })
* })
*/
async reply(guildId, channelId, ...data) {
// Test