(public readonly client: Client)
| 27 | public queues = new Collection<Snowflake, MusicQueue>(); |
| 28 | |
| 29 | public constructor(public readonly client: Client) { |
| 30 | this.client.login(config.TOKEN); |
| 31 | |
| 32 | this.client.on("ready", () => { |
| 33 | console.log(`${this.client.user!.username} ready!`); |
| 34 | |
| 35 | this.registerSlashCommands(); |
| 36 | }); |
| 37 | |
| 38 | this.client.on("warn", (info) => console.log(info)); |
| 39 | this.client.on("error", console.error); |
| 40 | |
| 41 | this.onInteractionCreate(); |
| 42 | } |
| 43 | |
| 44 | private async registerSlashCommands() { |
| 45 | const rest = new REST({ version: "9" }).setToken(config.TOKEN); |
nothing calls this directly
no test coverage detected