Skip to content
This repository was archived by the owner on Sep 29, 2022. It is now read-only.

Commit 5b02104

Browse files
committed
🎨 Settings options case-insensitive
1 parent ace3e2b commit 5b02104

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/Admin/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = class ConfigCommand extends Command {
5454
.setFooter(`Guild: ${message.guild.id}`)
5555
.setTimestamp();
5656

57-
switch (setting) {
57+
switch (setting.toLowerCase()) {
5858
case 'prefix': {
5959
configEmbed.setAuthor(`${message.guild} | Prefix`, message.guild.iconURL());
6060

@@ -356,7 +356,7 @@ module.exports = class ConfigCommand extends Command {
356356
message.channel.send(configEmbed);
357357
break;
358358
}
359-
case 'dmResponses': {
359+
case 'dmresponses': {
360360
configEmbed.setAuthor(`${message.guild} | DM Responses`, message.guild.iconURL());
361361

362362
if (updated) {
@@ -413,7 +413,7 @@ module.exports = class ConfigCommand extends Command {
413413
break;
414414
}
415415

416-
case 'keepLogs': {
416+
case 'keeplogs': {
417417
let sChannel;
418418
try {
419419
if (!suggestionsChannel || (suggestionsChannel === this.client.config.suggestionsChannel)) {

0 commit comments

Comments
 (0)