Changed the event handler
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user