From 11ee782d75a0ef85f1a2e012d4ad9bd0f48027cc Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Mon, 28 Mar 2022 20:54:13 +0700 Subject: [PATCH] Update DOCUMENT.md --- DOCUMENT.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCUMENT.md b/DOCUMENT.md index 454fcfe..656d2e8 100644 --- a/DOCUMENT.md +++ b/DOCUMENT.md @@ -257,7 +257,7 @@ await message.selectMenu(options) // If message has 1 menu const botID = '12345678987654321' const user = await client.users.fetch(botID); const application = await user.applications.fetch(); -const command = application.cache.first(); +const command = application.first(); // Message: Discord.Message, using Message contructor create /* guildID: Guild.id || null, @@ -279,7 +279,7 @@ await Channel.sendSlash(botID, commandName, ['option1', 'option2']); const botID = '12345678987654321' const user = await client.users.fetch(botID); const application = await user.applications.fetch(); -const command = application.cache.first(); +const command = application.first(); // Message: Discord.Message, using Message contructor create /* guildID: Guild.id || null,