Update DOCUMENT.md

This commit is contained in:
March 7th 2022-03-28 20:54:13 +07:00
parent 993240423a
commit 11ee782d75

View File

@ -257,7 +257,7 @@ await message.selectMenu(options) // If message has 1 menu
const botID = '12345678987654321' const botID = '12345678987654321'
const user = await client.users.fetch(botID); const user = await client.users.fetch(botID);
const application = await user.applications.fetch(); const application = await user.applications.fetch();
const command = application.cache.first(); const command = application.first();
// Message: Discord.Message, using Message contructor create // Message: Discord.Message, using Message contructor create
/* /*
guildID: Guild.id || null, guildID: Guild.id || null,
@ -279,7 +279,7 @@ await Channel.sendSlash(botID, commandName, ['option1', 'option2']);
const botID = '12345678987654321' const botID = '12345678987654321'
const user = await client.users.fetch(botID); const user = await client.users.fetch(botID);
const application = await user.applications.fetch(); const application = await user.applications.fetch();
const command = application.cache.first(); const command = application.first();
// Message: Discord.Message, using Message contructor create // Message: Discord.Message, using Message contructor create
/* /*
guildID: Guild.id || null, guildID: Guild.id || null,