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
|
||||
.setName("setting")
|
||||
.setDescription("The setting to configure")
|
||||
.setChoices(
|
||||
{ name: "Staff Application status", value: "staffAppStatus" }
|
||||
)
|
||||
.setRequired(true))
|
||||
.addStringOption(option =>
|
||||
option
|
||||
@@ -29,10 +32,9 @@ module.exports = {
|
||||
|
||||
await interaction.deferReply();
|
||||
|
||||
const setting = interaction.options.getString("setting");
|
||||
const setting = interaction.options.getString("setting")
|
||||
const value = interaction.options.getString("value");
|
||||
const embedColor = Number(color.replace("#", "0x"));
|
||||
|
||||
const settingsData = await settings.findOne({ name: setting });
|
||||
|
||||
if (!settingsData) {
|
||||
|
||||
Reference in New Issue
Block a user