Added a nicer display option to the config command
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -15,6 +15,9 @@ module.exports = {
|
|||||||
option
|
option
|
||||||
.setName("setting")
|
.setName("setting")
|
||||||
.setDescription("The setting to configure")
|
.setDescription("The setting to configure")
|
||||||
|
.setChoices(
|
||||||
|
{ name: "Staff Application status", value: "staffAppStatus" }
|
||||||
|
)
|
||||||
.setRequired(true))
|
.setRequired(true))
|
||||||
.addStringOption(option =>
|
.addStringOption(option =>
|
||||||
option
|
option
|
||||||
@@ -29,10 +32,9 @@ module.exports = {
|
|||||||
|
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
|
|
||||||
const setting = interaction.options.getString("setting");
|
const setting = interaction.options.getString("setting")
|
||||||
const value = interaction.options.getString("value");
|
const value = interaction.options.getString("value");
|
||||||
const embedColor = Number(color.replace("#", "0x"));
|
const embedColor = Number(color.replace("#", "0x"));
|
||||||
|
|
||||||
const settingsData = await settings.findOne({ name: setting });
|
const settingsData = await settings.findOne({ name: setting });
|
||||||
|
|
||||||
if (!settingsData) {
|
if (!settingsData) {
|
||||||
|
|||||||
Reference in New Issue
Block a user