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 8ad2d6c commit bb7e5feCopy full SHA for bb7e5fe
src/structs/Client.js
@@ -269,7 +269,7 @@ class Client extends EventEmitter {
269
const alertMessage = `**ALERT**\n\n${message}`
270
try {
271
const profile = await Profile.get(fetchedChannel.guild.id)
272
- if (!profile) {
+ if (!profile || !profile.alert || !profile.alert.length) {
273
return this.sendChannelMessage(channelID, alertMessage)
274
}
275
const alertTo = profile.alert
0 commit comments