feat/40-reroll-on-disinterest #54
|
@ -6,7 +6,7 @@ export type VoteEndMessage = Message & { readonly __brand: 'voteend' }
|
|||
export type AnnouncementMessage = Message & { readonly __brand: 'announcement' }
|
||||
export type VoteMessage = Message & { readonly __brand: 'vote' }
|
||||
|
||||
export type DiscordMessage = VoteMessage | VoteEndMessage | AnnouncementMessage
|
||||
export type KnownDiscordMessage = VoteMessage | VoteEndMessage | AnnouncementMessage
|
||||
|
||||
export function isVoteMessage(message: Message): message is VoteMessage {
|
||||
return message.cleanContent.includes('[Abstimmung]')
|
||||
|
|
Loading…
Reference in New Issue