File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,10 @@ export class DiscordBot extends Service {
7979 async getGuildMember ( userId : string ) : Promise < Discord . GuildMember | undefined > {
8080 if ( ! this . ready ) return ;
8181 try {
82- return this . discord . guilds . cache
82+ const user = this . discord . guilds . cache
8383 . get ( this . config . bot . primaryGuildId )
8484 ?. members . fetch ( userId ) ;
85+ return user ;
8586 } catch {
8687 return ;
8788 }
@@ -132,7 +133,7 @@ export class DiscordBot extends Service {
132133 const iconURL =
133134 this . discord . user . avatarURL ( { size : 4096 } ) ?? guild . iconURL ( { size : 4096 } ) ;
134135 this . data . lastDiscordGuildIcon = iconURL
135- ? ( await getAsBase64 ( iconURL ) ) ?? this . data . lastDiscordGuildIcon
136+ ? ( ( await getAsBase64 ( iconURL ) ) ?? this . data . lastDiscordGuildIcon )
136137 : this . data . lastDiscordGuildIcon ;
137138 await this . data . save ( ) ;
138139 await this . discord . user . setAvatar ( path ) ;
You can’t perform that action at this time.
0 commit comments