From 8c975f0b6411ac598ffea2ce4be14c79a9ea0299 Mon Sep 17 00:00:00 2001 From: Blair <87805559+Kwack-Kwack@users.noreply.github.com> Date: Mon, 20 Mar 2023 01:55:15 +0800 Subject: [PATCH 1/3] Fix missing import in code sample --- src/guide/beginner/basic_bot.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/beginner/basic_bot.md b/src/guide/beginner/basic_bot.md index 6d75538..7756f30 100644 --- a/src/guide/beginner/basic_bot.md +++ b/src/guide/beginner/basic_bot.md @@ -97,7 +97,7 @@ Yes! That's it! We got our own ping command. Now try running the bot and send `! Got stuck? This is our resulting code, ```ts -import { Client, Intents } from './deps.ts' +import { Client, Intents, Message } from './deps.ts' const client = new Client() From b5835299b8c4455ae515cf601629d1667e4d300e Mon Sep 17 00:00:00 2001 From: Blair <87805559+Kwack-Kwack@users.noreply.github.com> Date: Mon, 20 Mar 2023 04:05:03 +0800 Subject: [PATCH 2/3] Extra missed import I missed as well --- src/guide/slash_commands/tag_bot.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/guide/slash_commands/tag_bot.md b/src/guide/slash_commands/tag_bot.md index 4c9c099..5a34460 100644 --- a/src/guide/slash_commands/tag_bot.md +++ b/src/guide/slash_commands/tag_bot.md @@ -44,7 +44,8 @@ import { SlashCommandPartial, Interaction, InteractionResponseType, - SlashCommandOptionType + SlashCommandOptionType, + Intents } from "./deps.ts" class TagBot extends Client { From 0f7354974cd3053558de6c734d68d467f4ace944 Mon Sep 17 00:00:00 2001 From: Blair <87805559+Kwack-Kwack@users.noreply.github.com> Date: Mon, 20 Mar 2023 04:09:26 +0800 Subject: [PATCH 3/3] Revert "Extra missed import I missed as well" This reverts commit b5835299b8c4455ae515cf601629d1667e4d300e. --- src/guide/slash_commands/tag_bot.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/guide/slash_commands/tag_bot.md b/src/guide/slash_commands/tag_bot.md index 5a34460..4c9c099 100644 --- a/src/guide/slash_commands/tag_bot.md +++ b/src/guide/slash_commands/tag_bot.md @@ -44,8 +44,7 @@ import { SlashCommandPartial, Interaction, InteractionResponseType, - SlashCommandOptionType, - Intents + SlashCommandOptionType } from "./deps.ts" class TagBot extends Client {