From 63d2c1ddf19547ef85aabbb996cd57060a4c841e Mon Sep 17 00:00:00 2001 From: Matias Espinoza Date: Mon, 13 Mar 2023 16:34:31 -0300 Subject: [PATCH] Fix code sequential order --- src/bot/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bot/index.ts b/src/bot/index.ts index f48705c..1e10623 100644 --- a/src/bot/index.ts +++ b/src/bot/index.ts @@ -53,16 +53,16 @@ export class Bot implements Runnable { }); this._client.on('ready', async () => { - // Set status to listening command + if (!this._client.user || !this._client.application) { + return; + } + + // Set status for show command this._client.user?.setActivity({ name: '/chat', type: ActivityType.Listening, }); - if (!this._client.user || !this._client.application) { - return; - } - await this._client.application.commands.set(commands); });