ID-Based Guild Settings

This commit is contained in:
Daniel Odendahl Jr
2017-05-03 20:44:45 +00:00
parent 3268a30118
commit 3abc9b1b08
13 changed files with 28 additions and 26 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class MemberLogCommand extends Command {
run(msg, args) {
const { channel } = args;
msg.guild.settings.set('memberLog', channel.name);
msg.guild.settings.set('memberLog', channel.id);
return msg.say(`Member Log channel set to ${channel.name}.`);
}
};
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class ModChannelCommand extends Command {
run(msg, args) {
const { channel } = args;
msg.guild.settings.set('modLog', channel.name);
msg.guild.settings.set('modLog', channel.id);
return msg.say(`Mod Log channel set to ${channel.name}.`);
}
};
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class StaffRoleCommand extends Command {
run(msg, args) {
const { role } = args;
msg.guild.settings.set('staffRole', role.name);
msg.guild.settings.set('staffRole', role.id);
return msg.say(`Server Staff role set to ${role.name}.`);
}
};