There was an error while loading. Please reload this page.
1 parent 35e9984 commit 4a3348cCopy full SHA for 4a3348c
1 file changed
src/components/moderation/voice-deputies.ts
@@ -171,4 +171,14 @@ export default class VoiceDeputies extends BotComponent {
171
await this.wheatley.channels.voice_hotline.send(`user was disconnected by <@${entry.executorId}>`);
172
}
173
174
+
175
+ override async on_message_create(message: Discord.Message) {
176
+ if (
177
+ message.channel.isVoiceBased() &&
178
+ message.mentions.roles.has(this.wheatley.roles.moderators.id) &&
179
+ !message.mentions.roles.has(this.wheatley.roles.voice_deputy.id)
180
+ ) {
181
+ await message.channel.send(`<@&${this.wheatley.roles.voice_deputy.id}>`);
182
+ }
183
184
0 commit comments