From c538a03dd036eb6c5fe5576e2ff5d7b34597c1ff Mon Sep 17 00:00:00 2001 From: chimpdev Date: Fri, 3 May 2024 18:23:58 +0300 Subject: [PATCH] Refactor setAuthor iconURL in reviews.js to use request.user.displayAvatarURL() --- server/src/routes/servers/[id]/reviews.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/servers/[id]/reviews.js b/server/src/routes/servers/[id]/reviews.js index ba93b913..93050d97 100644 --- a/server/src/routes/servers/[id]/reviews.js +++ b/server/src/routes/servers/[id]/reviews.js @@ -54,7 +54,7 @@ module.exports = { const embeds = [ new Discord.EmbedBuilder() - .setAuthor({ name: request.user.username, iconURL: request.member.user.displayAvatarURL() }) + .setAuthor({ name: request.user.username, iconURL: request.user.displayAvatarURL() }) .setTitle('New Review') .setFields([ {