Skip to content

Commit 72f8a15

Browse files
committed
Fix(Stats) Fixing textchannel to send stats
1 parent 287ec5b commit 72f8a15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/services/bot.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ export class BotService implements OnModuleInit {
7676
}
7777

7878
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);
79+
const channel = await this.getChannel(process.env.AUTOMATE_ADMIN_CHANNEL) as Discord.TextChannel;
80+
await channel.send(msg);
8281
}
8382

8483
private async onGuildCreate(guild: Discord.Guild) {

0 commit comments

Comments
 (0)