-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix guild create limit, fix emojis and add new cmd
- Loading branch information
1 parent
4acae3d
commit 4f1a2e8
Showing
9 changed files
with
211 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const { MessageEmbed, MessageButton, MessageActionRow } = require("discord.js"); | ||
|
||
module.exports = async (client, interaction, args) => { | ||
const user = interaction.guild.members.cache.get(args[1]); | ||
if (!user) { | ||
return client.createSlashError(interaction, `${client.bot_emojis.error} | I couldn't find that user!`); | ||
} | ||
const avatar = user.user.displayAvatarURL({ | ||
dynamic: true, | ||
format: "png", | ||
size: 4096, | ||
}); | ||
const row = new MessageActionRow() // Prettier | ||
.addComponents( | ||
// Prettier | ||
new MessageButton() // Prettier | ||
.setLabel("Avatar Link") | ||
.setStyle("LINK") | ||
.setURL(avatar) | ||
); | ||
const embed = new MessageEmbed() // Prettier | ||
.setColor("#5865f2") | ||
.setDescription(`${user.user.tag}'s Avatar`) | ||
.setImage(avatar) | ||
.setTimestamp() | ||
.setFooter({ | ||
text: `Requested by ${interaction.user.username}`, | ||
iconURL: interaction.user.displayAvatarURL({ | ||
dynamic: true, | ||
format: "png", | ||
size: 2048, | ||
}), | ||
}); | ||
await interaction.followUp({ embeds: [embed], components: [row] }); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.