Compare commits
No commits in common. "d9f3e160aae266e4dc6a91cf868a8b32c2a1435a" and "53027ac21f1a131bce61784173c5f66c51578788" have entirely different histories.
d9f3e160aa
...
53027ac21f
|
|
@ -203,13 +203,6 @@ export class FishingService {
|
|||
return;
|
||||
}
|
||||
|
||||
if (session.status === 'success' || session.status === 'failed') {
|
||||
await interaction.update({
|
||||
components: [this.buildControlRow(session.userId, true)],
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (interaction.user.id !== session.userId) {
|
||||
await interaction.reply({
|
||||
content: t(locale, 'commands.fishing.ownerOnly'),
|
||||
|
|
@ -375,6 +368,8 @@ export class FishingService {
|
|||
private static async finishSession(session: FishingSession, finalState: 'success' | 'failed', deleteThread: boolean) {
|
||||
session.status = finalState;
|
||||
this.clearTick(session);
|
||||
this.sessionsByUser.delete(this.getUserKey(session.guildId, session.userId));
|
||||
this.sessionsByThread.delete(session.threadId);
|
||||
|
||||
logger.info(`[Fishing] Finished session for ${session.userId} with state ${finalState}.`);
|
||||
|
||||
|
|
@ -382,9 +377,6 @@ export class FishingService {
|
|||
|
||||
await this.renderSession(session, true);
|
||||
|
||||
this.sessionsByUser.delete(this.getUserKey(session.guildId, session.userId));
|
||||
this.sessionsByThread.delete(session.threadId);
|
||||
|
||||
if (finalState === 'success') {
|
||||
await this.sendCatchResult(session);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue