Changed the event handler

This commit is contained in:
2024-09-16 13:59:19 +02:00
parent 957536fb62
commit 50a70797b4
10 changed files with 20 additions and 54 deletions

View File

@@ -2,14 +2,10 @@ import { guildid } from "config/options.js"
import statuses from "config/statuses.js"
import { Guild } from "discord.js"
import { IEvent } from "interfaces"
import { ExtendedClient as Client } from "utils/Client.js"
export default {
name: "status",
description: "Sets the status of the bot",
event: "ready",
execute(client: Client) {
execute(client) {
const user = client.user!
const guild = client.guilds.cache.get(guildid) as Guild
@@ -31,4 +27,4 @@ export default {
user.setStatus("dnd")
}
} as IEvent
} as IEvent<"ready">