user14023978
user14023978

Reputation:

How to make user profile picture bigger | discord.js

The issue I am having is that every time I make the bot display someones avatar its significantly smaller to what other bots display like Dyno and sx4. Example:

enter image description here

How would I make the image bigger?(my bot is the one named "Azrael")

Upvotes: 0

Views: 4695

Answers (2)

MZPL
MZPL

Reputation: 114

Try: user.displayAvatarURL({size: 2048})

displayAvatarURL() method is better than avatarURL() because it also shows user's avatar if they have discord default one.

https://discord.js.org/#/docs/main/stable/class/User?scrollTo=displayAvatarURL

Upvotes: 3

Lioness100
Lioness100

Reputation: 8402

The MessageEmbedImage object has a height and width property you can set. For more information on embed image objects, visit here

Upvotes: 1

Related Questions