Skip to content

Commit

Permalink
Updated bot for DJS V13.6 Support!
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyTunes committed Jan 13, 2022
1 parent 0fd415a commit a487e4e
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 50 deletions.
7 changes: 1 addition & 6 deletions SlashCommands/info/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ module.exports = {
{ name: 'Uptime: ', value: `\`\`\`\n${BOTUptime}\n\`\`\``, inline: true },
)
.setTimestamp()
.setFooter(
`Requested by ${interaction.user.tag}`,
interaction.user.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() });

interaction.followUp({ embeds: [InfoEmbed] });
})
Expand Down
7 changes: 1 addition & 6 deletions SlashCommands/util/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ module.exports = {
.setColor('GREEN')
.setTitle('About Us')
.setDescription('This bot is using a template made by CaldeiraG and Brayd ( OnlyTunes ) If you like using the template or like this bot feel free to check us out by using the buttons below!')
.setFooter(
`Requested by ${interaction.user.tag}`,
interaction.user.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() });

await interaction.followUp({ ephemeral: true, embeds: [embed], components: [row] });

Expand Down
7 changes: 1 addition & 6 deletions SlashCommands/util/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ module.exports = {
.setTitle('Invite the bot')
.setURL(inviteURL)
.setDescription('Use the button below to add the bot!')
.setFooter(
`Requested by ${interaction.user.tag}`,
interaction.user.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() });

await interaction.followUp({ ephemeral: true, embeds: [embed], components: [row] });
}
Expand Down
7 changes: 1 addition & 6 deletions SlashCommands/util/license.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ module.exports = {
.setColor('GREEN')
.setTitle('About Us')
.setDescription('This bot is licensed under the MIT License. This allows users to:\n- Use Commercially\n- Freely Modify\n- Freely Distribute\n- Use privately\n For more info use the buttons below to read it in its full extent!')
.setFooter(
`Requested by ${interaction.user.tag}`,
interaction.user.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() });

await interaction.followUp({ ephemeral: true, embeds: [embed], components: [row] });

Expand Down
7 changes: 1 addition & 6 deletions commands/info/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ module.exports = {
{ name: 'Uptime: ', value: `\`\`\`\n${BOTUptime}\n\`\`\``, inline: true },
)
.setTimestamp()
.setFooter(
`Requested by ${message.author.tag}`,
message.author.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() });

message.channel.send({ embeds: [InfoEmbed] });
})
Expand Down
7 changes: 1 addition & 6 deletions commands/util/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ module.exports = {
.setColor('GREEN')
.setTitle('About Us')
.setDescription('This bot is using a template made by CaldeiraG and Brayd ( OnlyTunes ) If you like using the template or like this bot feel free to check us out by using the buttons below!')
.setFooter(
`Requested by ${message.author.tag}`,
message.author.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() });

await message.channel.send({ ephemeral: true, embeds: [embed], components: [row] });

Expand Down
7 changes: 1 addition & 6 deletions commands/util/invite.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ module.exports = {
.setTitle('Invite Me')
.setURL(inviteURL)
.setDescription('Use the button provided below to add the bot to your server!')
.setFooter(
`Requested by ${message.author.tag}`,
message.author.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() });

await message.channel.send({ ephemeral: true, embeds: [embed], components: [row] });

Expand Down
7 changes: 1 addition & 6 deletions commands/util/license.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@ module.exports = {
.setColor('GREEN')
.setTitle('About Us')
.setDescription('This bot is licensed under the MIT License. This allows users to:\n- Use Commercially\n- Freely Modify\n- Freely Distribute\n- Use privately\n For more info use the buttons below to read it in its full extent!')
.setFooter(
`Requested by ${message.author.tag}`,
message.author.displayAvatarURL({
dynamic: true,
})
);
.setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() });

await message.reply({ ephemeral: true, embeds: [embed], components: [row] });

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bot-template",
"version": "1.3.0",
"version": "1.4.0",
"description": "A simple DJS bot template",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -30,7 +30,7 @@
"license": "MIT",
"dependencies": {
"chalk": "^4.1.2",
"discord.js": "^13.3.1",
"discord.js": "^13.6.0",
"dotenv": "^10.0.0",
"figlet": "^1.5.2",
"glob": "^7.1.7",
Expand Down

0 comments on commit a487e4e

Please sign in to comment.