mirror of
https://github.com/danbulant/discord.js
synced 2026-06-21 15:51:48 +00:00
Update avatar example for v12.0 (#1610)
User.displayAvatarURL was changed from a property to a method so I changed the example accordingly
This commit is contained in:
parent
e671a010cb
commit
1fadd0f859
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ client.on('message', message => {
|
|||
// If the message is "what is my avatar"
|
||||
if (message.content === 'what is my avatar') {
|
||||
// Send the user's avatar URL
|
||||
message.reply(message.author.displayAvatarURL);
|
||||
message.reply(message.author.displayAvatarURL());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue