Skip to content

Commit bb7e5fe

Browse files
committed
Fix channel alerts not getting sent with no user alerts
1 parent 8ad2d6c commit bb7e5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structs/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class Client extends EventEmitter {
269269
const alertMessage = `**ALERT**\n\n${message}`
270270
try {
271271
const profile = await Profile.get(fetchedChannel.guild.id)
272-
if (!profile) {
272+
if (!profile || !profile.alert || !profile.alert.length) {
273273
return this.sendChannelMessage(channelID, alertMessage)
274274
}
275275
const alertTo = profile.alert

0 commit comments

Comments
 (0)