File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,8 @@ export class DiscordBot extends Service {
129129 path = ( await getEventIcon ( ) ) . filePath ;
130130 }
131131
132- const iconURL = this . discord . user . avatarURL ( ) ?? guild . iconURL ( ) ;
132+ const iconURL =
133+ this . discord . user . avatarURL ( { size : 4096 } ) ?? guild . iconURL ( { size : 4096 } ) ;
133134 this . data . lastDiscordGuildIcon = iconURL
134135 ? ( await getAsBase64 ( iconURL ) ) ?? this . data . lastDiscordGuildIcon
135136 : this . data . lastDiscordGuildIcon ;
@@ -172,7 +173,7 @@ export class DiscordBot extends Service {
172173 try {
173174 const guild = this . getGuild ( ) ;
174175 if ( ! guild ) return false ;
175- const bannerURL = guild . bannerURL ( ) ;
176+ const bannerURL = guild . bannerURL ( { size : 4096 } ) ;
176177 this . data . lastDiscordBanner = bannerURL
177178 ? ( await getAsBase64 ( bannerURL ) ) ?? this . data . lastDiscordBanner
178179 : this . data . lastDiscordBanner ;
@@ -239,7 +240,7 @@ export class DiscordBot extends Service {
239240 async overLvl2 ( ) : Promise < boolean > {
240241 const guild = this . discord . guilds . cache . get ( this . config . bot . primaryGuildId ) ;
241242 if ( ! guild ) return false ;
242- return guild . premiumTier > Discord . GuildPremiumTier . Tier1 ?? false ;
243+ return guild . premiumTier > Discord . GuildPremiumTier . Tier1 ;
243244 }
244245
245246 async removeMotdReactions ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments