From 1fadd0f8597491e45b04e3c1b31a17c0282e125f Mon Sep 17 00:00:00 2001 From: Mstrodl Date: Sat, 24 Jun 2017 18:12:22 -0400 Subject: [PATCH] Update avatar example for v12.0 (#1610) User.displayAvatarURL was changed from a property to a method so I changed the example accordingly --- docs/examples/avatars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/avatars.js b/docs/examples/avatars.js index cf59a6c94..58bc90f8f 100644 --- a/docs/examples/avatars.js +++ b/docs/examples/avatars.js @@ -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()); } });