mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 18:21:25 +03:00
Added conventional (non-slash) commands support for settings command
Settings server plugin postponed.
This commit is contained in:
21
src/commands/_settings.js
Normal file
21
src/commands/_settings.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const Command = require('../modules/commands/command');
|
||||
|
||||
module.exports = class SettingsCommand extends Command {
|
||||
constructor(client) {
|
||||
const i18n = client.i18n.get(client.config.locale);
|
||||
super(client, {
|
||||
internal: true,
|
||||
slash: false,
|
||||
name: i18n('commands.settings.name'),
|
||||
description: i18n('commands.settings.description'),
|
||||
});
|
||||
}
|
||||
|
||||
async execute({ guild, member, channel, args }, message) {
|
||||
|
||||
let settings = await guild.settings;
|
||||
const i18n = this.client.i18n.get(settings.locale);
|
||||
|
||||
message.channel.send('Settings!');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user