We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 287ec5b commit 72f8a15Copy full SHA for 72f8a15
src/services/bot.service.ts
@@ -76,9 +76,8 @@ export class BotService implements OnModuleInit {
76
}
77
78
public async sendAdminChannelMessage(msg: string) {
79
- const channel = await this.getChannel(process.env.AUTOMATE_ADMIN_CHANNEL);
80
- if (channel instanceof Discord.TextChannel)
81
- await channel.send(msg);
+ const channel = await this.getChannel(process.env.AUTOMATE_ADMIN_CHANNEL) as Discord.TextChannel;
+ await channel.send(msg);
82
83
84
private async onGuildCreate(guild: Discord.Guild) {
0 commit comments