commit bb11d4d79a99ab746b95f219e8e7f41ab6cf46c6
parent dfcae1590d635ab4ab62932b4590cb9407fa8c65
Author: NK <[email protected]>
Date: Fri, 3 Feb 2023 19:14:39 +0000
fixing bugs
Diffstat:
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git 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
@@ -11,7 +11,7 @@ module.exports = {
const Embed = new EmbedBuilder()
.setTitle("<a:pong:897383314405605436> 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
@@ -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)