mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
Fix Some Names
This commit is contained in:
parent
92fe7335fb
commit
1e6cfb8bd2
1 changed files with 5 additions and 5 deletions
|
@ -61,7 +61,7 @@ async function showNotification(message: Message, guildId: string | undefined):
|
||||||
new Audio("https://discord.com/assets/9422aef94aa931248105.mp3").play();
|
new Audio("https://discord.com/assets/9422aef94aa931248105.mp3").play();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} 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, (
|
children.splice(-1, 0, (
|
||||||
<Menu.MenuGroup>
|
<Menu.MenuGroup>
|
||||||
<Menu.MenuItem
|
<Menu.MenuItem
|
||||||
id={`dnd-${name}-bypass`}
|
id={`status-${name}-bypass`}
|
||||||
label={`${enabled ? "Remove" : "Add"} DND Bypass`}
|
label={`${enabled ? "Remove" : "Add"} Status Bypass`}
|
||||||
icon={() => Icon(enabled)}
|
icon={() => Icon(enabled)}
|
||||||
action={() => {
|
action={() => {
|
||||||
let bypasses: string[] = settings.store[`${name}s`].split(", ");
|
let bypasses: string[] = settings.store[`${name}s`].split(", ");
|
||||||
|
@ -113,7 +113,7 @@ const settings = definePluginSettings({
|
||||||
},
|
},
|
||||||
allowOutsideOfDms: {
|
allowOutsideOfDms: {
|
||||||
type: OptionType.BOOLEAN,
|
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: {
|
notificationSound: {
|
||||||
type: OptionType.BOOLEAN,
|
type: OptionType.BOOLEAN,
|
||||||
|
@ -169,7 +169,7 @@ export default definePlugin({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
new Logger("BypassDND").error("Failed to handle message: ", error);
|
new Logger("BypassStatus").error("Failed to handle message: ", error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue