Shortbread

This commit is contained in:
Inbestigator 2024-03-08 23:31:23 -08:00
parent e1b75bdb57
commit 1e462cc187

View file

@ -58,27 +58,21 @@ const settings = definePluginSettings({
description: "Guilds to let bypass (notified when pinged anywhere in guild)", description: "Guilds to let bypass (notified when pinged anywhere in guild)",
default: "", default: "",
placeholder: "Separate with commas", placeholder: "Separate with commas",
onChange: async function (value) { onChange: value => settings.store.guilds = value.replace(/\s/g, "").split(",").filter(id => id.trim() !== "").join(", ")
settings.store.guilds = value.replace(/\s/g, "").split(",").filter(id => id.trim() !== "").join(", ");
}
}, },
channels: { channels: {
type: OptionType.STRING, type: OptionType.STRING,
description: "Channels to let bypass (notified when pinged in that channel)", description: "Channels to let bypass (notified when pinged in that channel)",
default: "", default: "",
placeholder: "Separate with commas", placeholder: "Separate with commas",
onChange: async function (value) { onChange: value => settings.store.channels = value.replace(/\s/g, "").split(",").filter(id => id.trim() !== "").join(", ")
settings.store.channels = value.replace(/\s/g, "").split(",").filter(id => id.trim() !== "").join(", ");
}
}, },
users: { users: {
type: OptionType.STRING, type: OptionType.STRING,
description: "Users to let bypass (notified for all messages sent in DMs)", description: "Users to let bypass (notified for all messages sent in DMs)",
default: "", default: "",
placeholder: "Separate with commas", placeholder: "Separate with commas",
onChange: async function (value) { onChange: value => settings.store.users = value.replace(/\s/g, "").split(",").filter(id => id.trim() !== "").join(", ")
settings.store.users = value.replace(/\s/g, "").split(",").filter(id => id.trim() !== "").join(", ");
}
}, },
allowOutsideOfDms: { allowOutsideOfDms: {
type: OptionType.BOOLEAN, type: OptionType.BOOLEAN,