Fixed spelling mistake

This commit is contained in:
Inbestigator 2024-03-06 09:09:43 -08:00
parent 21654c8fd9
commit 9bb33f78c6

View file

@ -113,7 +113,7 @@ const settings = definePluginSettings({
await DataStore.set("bypassdnd", bypasses);
},
},
allowOutsideOfDM: {
allowOutsideOfDm: {
type: OptionType.BOOLEAN,
description: "Allow selected users to send notifications outside of DM (acts like a channel/guild bypass, but it's for all messages sent by the selected users)",
}
@ -154,7 +154,7 @@ export default definePlugin({
if (bypasses.users.includes(message.author.id)) {
if (channelId === await PrivateChannelsStore.getOrEnsurePrivateChannel(message.author.id)) {
await showUserNotification(message);
} else if ((message.content.includes(`<@${currentUser.id}>`) || message.mentions.some(mention => mention.id === currentUser.id)) && settings.store.allowOutsideOfDM) {
} else if ((message.content.includes(`<@${currentUser.id}>`) || message.mentions.some(mention => mention.id === currentUser.id)) && settings.store.allowOutsideOfDm) {
await showChannelNotification(message);
}
}