Fix setPresence not using prefix

This commit is contained in:
SileNce5k 2021-07-02 20:21:07 +02:00
parent 49a3c50980
commit 55393e755e
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -35,7 +35,7 @@ module.exports = function(client, owners, message, globalPrefix){
} }
if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return; if (command.admin && owners.indexOf(message.author.id.toString()) == -1) return;
try { try {
command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners}) command.execute({ message: message, args: args, client: client, prefix: prefix, owners: owners, globalPrefix: globalPrefix})
console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`) console.log(`${message.author.username}(id: ${message.author.id}) executed ${command.name} with '${args}' as arguments`)
} catch (error) { } catch (error) {
let divider = "------------------------" let divider = "------------------------"