mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-12 08:14:34 +02:00
add util commande
This commit is contained in:
@@ -8,9 +8,9 @@ module.exports = {
|
||||
emote: '📚',
|
||||
utilisation: 'help [commande]',
|
||||
async execute(message, args, client) {
|
||||
const defaultprefix = "+";
|
||||
const botId = client.user.id;
|
||||
const guildId = message.guild.id;
|
||||
const defaultprefix = "+";
|
||||
let mainPrefix = await GestionDb.get(`${botId}.prefix`);
|
||||
let serverPrefix = await GestionDb.get(`${botId}.${guildId}.prefix`);
|
||||
const prefix = serverPrefix !== undefined ? serverPrefix : mainPrefix !== undefined ? mainPrefix : defaultprefix;
|
||||
|
||||
Reference in New Issue
Block a user