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 {
129
129
path = ( await getEventIcon ( ) ) . filePath ;
130
130
}
131
131
132
- const iconURL = this . discord . user . avatarURL ( ) ?? guild . iconURL ( ) ;
132
+ const iconURL =
133
+ this . discord . user . avatarURL ( { size : 4096 } ) ?? guild . iconURL ( { size : 4096 } ) ;
133
134
this . data . lastDiscordGuildIcon = iconURL
134
135
? ( await getAsBase64 ( iconURL ) ) ?? this . data . lastDiscordGuildIcon
135
136
: this . data . lastDiscordGuildIcon ;
@@ -172,7 +173,7 @@ export class DiscordBot extends Service {
172
173
try {
173
174
const guild = this . getGuild ( ) ;
174
175
if ( ! guild ) return false ;
175
- const bannerURL = guild . bannerURL ( ) ;
176
+ const bannerURL = guild . bannerURL ( { size : 4096 } ) ;
176
177
this . data . lastDiscordBanner = bannerURL
177
178
? ( await getAsBase64 ( bannerURL ) ) ?? this . data . lastDiscordBanner
178
179
: this . data . lastDiscordBanner ;
@@ -239,7 +240,7 @@ export class DiscordBot extends Service {
239
240
async overLvl2 ( ) : Promise < boolean > {
240
241
const guild = this . discord . guilds . cache . get ( this . config . bot . primaryGuildId ) ;
241
242
if ( ! guild ) return false ;
242
- return guild . premiumTier > Discord . GuildPremiumTier . Tier1 ?? false ;
243
+ return guild . premiumTier > Discord . GuildPremiumTier . Tier1 ;
243
244
}
244
245
245
246
async removeMotdReactions ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments