mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 22:32:52 +02:00
ID-Based Guild Settings
This commit is contained in:
@@ -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}.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}.`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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}.`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user