From bb11d4d79a99ab746b95f219e8e7f41ab6cf46c6 Mon Sep 17 00:00:00 2001 From: NK Date: Fri, 3 Feb 2023 19:14:39 +0000 Subject: [PATCH] fixing bugs --- command/Information/help.js | 2 +- command/Information/ping.js | 2 +- command/Information/userinfo.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/command/Information/help.js b/command/Information/help.js index 3bf29a3..30d074c 100644 --- a/command/Information/help.js +++ b/command/Information/help.js @@ -85,7 +85,7 @@ module.exports = { iconURL: interaction.user.displayAvatarURL({ dynamic: true }), }); const components = state => [ - new Discord.MessageActionRow().addComponents( + new Discord.ActionRowBuilder().addComponents( new Discord.MessageSelectMenu() .setCustomId("help-menu") .setPlaceholder(`Please select a category`) diff --git a/command/Information/ping.js b/command/Information/ping.js index 3ee7ec6..7a1745d 100644 --- a/command/Information/ping.js +++ b/command/Information/ping.js @@ -11,7 +11,7 @@ module.exports = { const Embed = new EmbedBuilder() .setTitle(" Pong!") .setAuthor({ - name: `${interaction.user.username}`, + name: interaction.user.username, iconURL: interaction.user.displayAvatarURL(), }) .setDescription( diff --git a/command/Information/userinfo.js b/command/Information/userinfo.js index 22e04ca..4339cbe 100644 --- a/command/Information/userinfo.js +++ b/command/Information/userinfo.js @@ -82,10 +82,10 @@ module.exports = { // activities = "None"; // } else activities = "None"; const embed = new EmbedBuilder() - .setAuthor( - member.user.tag, - member.user.displayAvatarURL({ dynamic: true, size: 2048 }) - ) + .setAuthor({ + name: member.user.tag, + iconURL: member.user.displayAvatarURL({ dynamic: true, size: 2048 }), + }) .setTimestamp() .setColor(member.displayHexColor || client.color) .setURL(client.web)