Fix Some Names

This commit is contained in:
thororen1234 2024-08-18 00:24:00 -04:00
parent 92fe7335fb
commit 1e6cfb8bd2

View file

@ -61,7 +61,7 @@ async function showNotification(message: Message, guildId: string | undefined):
new Audio("https://discord.com/assets/9422aef94aa931248105.mp3").play();
}
} catch (error) {
new Logger("BypassDND").error("Failed to notify user: ", error);
new Logger("BypassStatus").error("Failed to notify user: ", error);
}
}
@ -74,8 +74,8 @@ function ContextCallback(name: "guild" | "user" | "channel"): NavContextMenuPatc
children.splice(-1, 0, (
<Menu.MenuGroup>
<Menu.MenuItem
id={`dnd-${name}-bypass`}
label={`${enabled ? "Remove" : "Add"} DND Bypass`}
id={`status-${name}-bypass`}
label={`${enabled ? "Remove" : "Add"} Status Bypass`}
icon={() => Icon(enabled)}
action={() => {
let bypasses: string[] = settings.store[`${name}s`].split(", ");
@ -113,7 +113,7 @@ const settings = definePluginSettings({
},
allowOutsideOfDms: {
type: OptionType.BOOLEAN,
description: "Allow selected users to bypass DND outside of DMs too (acts like a channel/guild bypass, but it's for all messages sent by the selected users)"
description: "Allow selected users to bypass status outside of DMs too (acts like a channel/guild bypass, but it's for all messages sent by the selected users)"
},
notificationSound: {
type: OptionType.BOOLEAN,
@ -169,7 +169,7 @@ export default definePlugin({
}
}
} catch (error) {
new Logger("BypassDND").error("Failed to handle message: ", error);
new Logger("BypassStatus").error("Failed to handle message: ", error);
}
}
},