Skip to content
Merged

Dev #25

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.8
1.0.9
8 changes: 3 additions & 5 deletions src/event/event-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
} from '../utils/retry.js';

type EventOperation = 'starting' | 'finishing' | 'cancelling' | 'cleanup';
type TerminalStates = 'cancelled' | 'finished' | 'expired' | 'shutdown';

export interface EventTimer {
startTime: number;
Expand Down Expand Up @@ -62,10 +63,7 @@ export class EventManager {
private casual = new Map<string, boolean>();
private info = new Map<string, string | undefined>();
private updateTimeouts = new Map<string, NodeJS.Timeout>();
private terminalStates = new Map<
string,
'cancelled' | 'finished' | 'expired' | 'shutdown' | null
>();
private terminalStates = new Map<string, TerminalStates>();

constructor(private client: Client) {}

Expand Down Expand Up @@ -558,7 +556,7 @@ export class EventManager {
const timeInMinutes = timerData.duration
? timerData.duration / TIMINGS.MINUTE_IN_MS
: undefined;
return [createEventButtons(timeInMinutes)];
return [createEventButtons(timeInMinutes), createRoleSelectMenu()];
}

queueUpdate(eventId: string, immediate = false) {
Expand Down