-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgetkey.js
46 lines (41 loc) · 1.44 KB
/
getkey.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const {
Client,
Interaction,
EmbedBuilder,
} = require("discord.js");
module.exports = {
/**
*
* @param {Client} client
* @param {Interaction} interaction
*/
callback: async (client, interaction) => {
try {
await interaction.deferReply({ephemeral: true});
const guild = interaction.guild;
const embed = new EmbedBuilder()
.setColor("#4ea554")
.setAuthor({
name: "Official Submarine Bot",
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
})
.setTitle("Greetings,")
.setDescription(
`<@${interaction.user.id}>\n\n__*Download*__: ➤ [Here](https://getwave.gg)\n__*Key*__: ➤ [Here](https://key.getwave.gg)\n__*Resellers*__: ➤ [Here](https://getwave.gg/resellers)\n__*Documentation*__: ➤ [Here](https://duckys-playground.gitbook.io/wave/getting-started)`
)
.setThumbnail(interaction.user.displayAvatarURL({ dynamic: true, size: 1024 }))
.setFooter({
text: `Requested by ${interaction.user.tag}`,
})
.setTimestamp();
await interaction.editReply({ embeds: [embed] });
} catch (error) {
console.error("Error handling getkey command:", error);
await interaction.editReply({
content: "An error occurred while generating the information.",
});
}
},
name: "getkey",
description: "Get special information on Submarine Services.",
};