From b3596dd64fc0bcb2a2c38ab4db76849b6988b9ca Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 4 Jan 2022 01:52:31 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/User.js | 1 + commands/Economy/profile.js | 6 +++--- commands/General/staff.js | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/base/User.js b/base/User.js index e3587299..bedb9cd4 100644 --- a/base/User.js +++ b/base/User.js @@ -97,6 +97,7 @@ userSchema.method("genApiToken", async function() { userSchema.method("getAchievements", async function() { const canvas = Canvas.createCanvas(1800, 250), ctx = canvas.getContext("2d"); + const images = [ await Canvas.loadImage(`./assets/img/achievements/achievement${this.achievements.work.achieved ? "_colored" : ""}1.png`), await Canvas.loadImage(`./assets/img/achievements/achievement${this.achievements.firstCommand.achieved ? "_colored" : ""}2.png`), diff --git a/commands/Economy/profile.js b/commands/Economy/profile.js index 3e7323c2..572ed1f7 100644 --- a/commands/Economy/profile.js +++ b/commands/Economy/profile.js @@ -85,9 +85,9 @@ class Profile extends Command { const buffer = userData.getAchievements(); message.channel.send({ embeds: [profileEmbed], - files: [{ - attachment: buffer - }] + // files: [{ + // attachment: buffer + // }] }); // Send the embed in the current channel } }; diff --git a/commands/General/staff.js b/commands/General/staff.js index 6d223034..9645e17f 100644 --- a/commands/General/staff.js +++ b/commands/General/staff.js @@ -20,6 +20,7 @@ class Staff extends Command { async run(message, args, data) { await message.guild.members.fetch(); const administrators = message.guild.members.cache.filter((m) => m.permissions.has(Discord.Permissions.FLAGS.ADMINISTRATOR) && !m.user.bot); + console.log(administrators[0]) const moderators = message.guild.members.cache.filter((m) => !administrators.has(m.id) && m.permissions.has(Discord.Permissions.FLAGS.MANAGE_MESSAGES) && !m.user.bot); const embed = new Discord.MessageEmbed() .setAuthor({