Fix code sequential order

This commit is contained in:
Matias Espinoza 2023-03-13 16:34:31 -03:00
parent 7390cbdbbb
commit 63d2c1ddf1

View File

@ -53,16 +53,16 @@ export class Bot implements Runnable {
}); });
this._client.on('ready', async () => { 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({ this._client.user?.setActivity({
name: '/chat', name: '/chat',
type: ActivityType.Listening, type: ActivityType.Listening,
}); });
if (!this._client.user || !this._client.application) {
return;
}
await this._client.application.commands.set(commands); await this._client.application.commands.set(commands);
}); });