Added node version check, some cleanup

This commit is contained in:
Essem 2022-01-07 11:44:18 -06:00
parent fb0c8ffae1
commit fd77ace48e
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
7 changed files with 19 additions and 12 deletions

View file

@ -2,7 +2,7 @@ import Command from "../../classes/command.js";
class AvatarCommand extends Command {
async run() {
if (this.message.mentions[0] !== undefined) {
if (this.message.mentions[0]) {
return this.message.mentions[0].dynamicAvatarURL(null, 1024);
} else if (await this.ipc.fetchUser(this.args[0])) {
const user = await this.ipc.fetchUser(this.args[0]);