Added node version check, some cleanup
This commit is contained in:
parent
fb0c8ffae1
commit
fd77ace48e
7 changed files with 19 additions and 12 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue