From 8d73ab7db3a3941ce67e2efe7ab00dd5631ecd3d Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Thu, 16 Mar 2023 03:30:01 +0000 Subject: [PATCH] fix: final touchup on rest --- website/docs/bigbot/step-2-rest.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/website/docs/bigbot/step-2-rest.md b/website/docs/bigbot/step-2-rest.md index 38c62ca7c..3510702e6 100644 --- a/website/docs/bigbot/step-2-rest.md +++ b/website/docs/bigbot/step-2-rest.md @@ -235,7 +235,7 @@ One of the last things we should do, is make it possible to run commands on this Let's make a small bot on this process. Make a file called `services/rest/bot.ts`. Then paste the code below. -````ts +```ts import { Client } from '@discordeno/client' import { logger } from '@discordeno/utils' import * as util from 'util' @@ -290,4 +290,6 @@ client.on('messageCreate', (message) => { await message.channel.createMessage(response.join('\n')) }) -```` +``` + +Now that you have an eval command available on ur `REST` service, whenever you need to modify something quickly you can easily do so from ur developer server where this bot is. For example, should you want to switch to a newer api version, it is as simple as `.eval REST.version = xxx` where xxx is the new API version.