Fix code sequential order
This commit is contained in:
parent
7390cbdbbb
commit
63d2c1ddf1
@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user