Discord.js v14

This commit is contained in:
Dragon Fire
2024-04-07 19:06:19 -04:00
parent 58c81aa912
commit f59826f7ab
272 changed files with 893 additions and 656 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
const Command = require('../../framework/Command');
const { PermissionFlagsBits } = require('discord.js');
module.exports = class BottomTextCommand extends Command {
constructor(client) {
@@ -11,7 +12,7 @@ module.exports = class BottomTextCommand extends Command {
usages: 2,
duration: 10
},
clientPermissions: ['ATTACH_FILES'],
clientPermissions: [PermissionFlagsBits.AttachFiles],
credit: [
{
name: 'ShareFonts.net',
@@ -30,7 +31,7 @@ module.exports = class BottomTextCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ format: 'png', size: 2048 })
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
}
]
});