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 5e42ceb commit da49a48Copy full SHA for da49a48
src/modules/helpchan.ts
@@ -114,7 +114,13 @@ export class HelpChanModule extends Module {
114
async checkEmptyOngoing(channel: TextChannel) {
115
const messages = await channel.messages.fetch();
116
117
- return messages.first()?.author.id === this.client.user?.id;
+ const embed = messages.first()?.embeds[0];
118
+
119
+ return (
120
+ embed &&
121
+ embed.description?.trim() ===
122
+ this.AVAILABLE_EMBED.description?.trim()
123
+ );
124
}
125
126
async startEmptyTimeout(channel: TextChannel) {
0 commit comments