File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -173,14 +173,14 @@ export class DiscordBot extends Service {
173
173
try {
174
174
const guild = this . getGuild ( ) ;
175
175
if ( ! guild ) return false ;
176
-
176
+
177
177
const bannerURL = guild . bannerURL ( { size : 4096 } ) ;
178
178
if ( bannerURL ) {
179
179
const bannerBase64 = await getAsBase64 ( bannerURL ) ;
180
180
this . data . lastDiscordBanner = bannerBase64 ?? this . data . lastDiscordBanner ;
181
181
await this . data . save ( ) ;
182
182
}
183
-
183
+
184
184
await guild . setBanner ( url , reason ) ;
185
185
return true ;
186
186
} catch {
Original file line number Diff line number Diff line change @@ -377,13 +377,13 @@ export default async (bot: DiscordBot) => {
377
377
await bot . container . getService ( "Markov" )
378
378
) . generate ( reaction . emoji . toString ( ) , DefaultMarkovConfig ) ;
379
379
if ( mk ) {
380
- lastReactionUserId = user . id ;
381
380
lastRespondedReactionMsgs . push ( message . id ) ;
382
381
await ( message . channel as Discord . TextChannel )
383
382
. send ( `${ user . mention } ` + mk )
384
383
. catch ( ) ;
385
384
}
386
385
}
386
+ lastReactionUserId = user . id ;
387
387
} ) ;
388
388
389
389
bot . discord . on ( "messageCreate" , async msg => {
You can’t perform that action at this time.
0 commit comments