Use avatarSize

This commit is contained in:
Dragon Fire
2024-05-09 00:23:04 -04:00
parent f881407643
commit 9118e0f054
91 changed files with 101 additions and 11 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ module.exports = class AspectRatioCommand extends Command {
args: [
{
key: 'image',
type: 'image-or-avatar'
type: 'image-or-avatar',
avatarSize: 256
}
]
});
+2 -1
View File
@@ -19,7 +19,8 @@ module.exports = class DominantColorCommand extends Command {
args: [
{
key: 'image',
type: 'image-or-avatar'
type: 'image-or-avatar',
avatarSize: 256
}
]
});
+2 -1
View File
@@ -24,7 +24,8 @@ module.exports = class NsfwImageCommand extends Command {
args: [
{
key: 'image',
type: 'image-or-avatar'
type: 'image-or-avatar',
avatarSize: 256
}
]
});
+2 -1
View File
@@ -21,7 +21,8 @@ module.exports = class ReadQRCodeCommand extends Command {
args: [
{
key: 'image',
type: 'image-or-avatar'
type: 'image-or-avatar',
avatarSize: 256
}
]
});
+1
View File
@@ -30,6 +30,7 @@ module.exports = class ApprovedCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -18,6 +18,7 @@ module.exports = class AsciiCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -27,6 +27,7 @@ module.exports = class BlurCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -35,6 +35,7 @@ module.exports = class BobRossCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -28,6 +28,7 @@ module.exports = class BrazzersCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -27,6 +27,7 @@ module.exports = class CharcoalCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -21,6 +21,7 @@ module.exports = class ChocolateMilkCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
},
{
+1
View File
@@ -20,6 +20,7 @@ module.exports = class CircleCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class CommunistCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class ContrastCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -25,6 +25,7 @@ module.exports = class DesaturateCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -28,6 +28,7 @@ module.exports = class DexterCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -24,6 +24,7 @@ module.exports = class DistortCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -27,6 +27,7 @@ module.exports = class EmbossCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class FireFrameCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -34,6 +34,7 @@ module.exports = class FishEyeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -37,6 +37,7 @@ module.exports = class FrameCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -19,6 +19,7 @@ module.exports = class GhostCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class GlassShatterCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class GlitchCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -21,6 +21,7 @@ module.exports = class GreyscaleCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -28,6 +28,7 @@ module.exports = class GunCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class HandsCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -27,6 +27,7 @@ module.exports = class IfunnyCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -33,6 +33,7 @@ module.exports = class ImplodeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class InvertCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -35,6 +35,7 @@ module.exports = class LegoIconCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -28,6 +28,7 @@ module.exports = class LiquidRescaleCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -26,6 +26,7 @@ module.exports = class MirrorCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -21,6 +21,7 @@ module.exports = class MotionBlurCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -27,6 +27,7 @@ module.exports = class NeedsMoreJpegCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -35,6 +35,7 @@ module.exports = class NoiseCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -28,6 +28,7 @@ module.exports = class OilPaintingCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -23,6 +23,7 @@ module.exports = class PetCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 128,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 128 })
}
]
+1
View File
@@ -21,6 +21,7 @@ module.exports = class PixelizeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class PoliceTapeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -21,6 +21,7 @@ module.exports = class RainbowCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class RejctedCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -25,6 +25,7 @@ module.exports = class RotateCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class SepiaCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -27,6 +27,7 @@ module.exports = class ShakeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class SilhouetteCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class SipCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
},
{
+1
View File
@@ -24,6 +24,7 @@ module.exports = class SketchCommand extends Command {
key: 'image',
type: 'image-or-avatar',
maxAttachmentSize: 2e+6,
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -38,6 +38,7 @@ module.exports = class SnapchatCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
@@ -50,6 +50,7 @@ module.exports = class SpotifyNowPlayingCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -19,6 +19,7 @@ module.exports = class SquareCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -34,6 +34,7 @@ module.exports = class SquishCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -46,6 +46,7 @@ module.exports = class SteamCardCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -34,6 +34,7 @@ module.exports = class SubtitleCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -33,6 +33,7 @@ module.exports = class SwirlCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -25,6 +25,7 @@ module.exports = class TintCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class VignetteCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class WantedCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -40,6 +40,7 @@ module.exports = class WildPokemonCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 128,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 128 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class YouDiedCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class ThreeThousandYearsCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+2 -1
View File
@@ -31,7 +31,8 @@ module.exports = class BottomTextCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
});
+1
View File
@@ -102,6 +102,7 @@ module.exports = class ChallengerCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class CrushCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -20,6 +20,7 @@ module.exports = class DeepFryCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -40,6 +40,7 @@ module.exports = class DemotivationalCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class DislikeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
}
]
+1
View File
@@ -35,6 +35,7 @@ module.exports = class EnslavedCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class ForFiveHoursCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
}
]
@@ -36,6 +36,7 @@ module.exports = class GirlWorthFightingForCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class IFearNoManCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -34,6 +34,7 @@ module.exports = class KyonGunCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -29,6 +29,7 @@ module.exports = class LikeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
}
]
@@ -29,6 +29,7 @@ module.exports = class LookAtThisPhotographCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
@@ -35,6 +35,7 @@ module.exports = class LookWhatKarenHaveCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+2 -1
View File
@@ -41,7 +41,8 @@ module.exports = class MemeGenCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
});
+1
View File
@@ -41,6 +41,7 @@ module.exports = class MetamorphosisCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
@@ -30,6 +30,7 @@ module.exports = class MyCollectionGrowsCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+2 -1
View File
@@ -45,7 +45,8 @@ module.exports = class NikeAdCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
});
+1
View File
@@ -33,6 +33,7 @@ module.exports = class ReactionMemeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
}
]
+1
View File
@@ -23,6 +23,7 @@ module.exports = class SexySinglesCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
}
]
+2 -1
View File
@@ -41,7 +41,8 @@ module.exports = class SkyrimSkillCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
avatarSize: 1024,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 1024 })
}
]
});
+1
View File
@@ -35,6 +35,7 @@ module.exports = class SoraSelfieCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class ThisGuyCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+2 -1
View File
@@ -30,7 +30,8 @@ module.exports = class ThugLifeCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
});
+1
View File
@@ -29,6 +29,7 @@ module.exports = class ToBeContinuedCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class UglyCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+1
View File
@@ -30,6 +30,7 @@ module.exports = class UltimateTattooCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 256,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 256 })
}
]
+2 -1
View File
@@ -28,7 +28,8 @@ module.exports = class VietnamFlashbacksCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 2048 })
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
});
+1
View File
@@ -30,6 +30,7 @@ module.exports = class WorthlessCommand extends Command {
{
key: 'image',
type: 'image-or-avatar',
avatarSize: 512,
default: msg => msg.author.displayAvatarURL({ extension: 'png', size: 512 })
}
]
+1 -1
View File
@@ -15,7 +15,7 @@ module.exports = class ImageOrAvatarArgument extends Argument {
const image = this.client.registry.types.get('image').parse(value, msg, arg);
if (image) return image;
const user = await this.client.registry.types.get('user').parse(value, msg, arg);
return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize || 512 });
return user.displayAvatarURL({ extension: 'png', size: arg.avatarSize });
}
isEmpty(value, msg, arg) {