msg -> message
All checks were successful
Compile the repository / compile (pull_request) Successful in 21s
Run unit tests / test (pull_request) Successful in 13s

This commit is contained in:
kenobi 2023-11-18 18:26:45 +01:00
parent 20da25f2bf
commit fc64728a78

View File

@ -8,13 +8,13 @@ export type VoteMessage = Message & { readonly __brand: 'voteend' }
export type DiscordMessage = VoteMessage | VoteEndMessage | AnnouncementMessage export type DiscordMessage = VoteMessage | VoteEndMessage | AnnouncementMessage
export function isVoteMessage(msg: Message): msg is VoteMessage { export function isVoteMessage(message: Message): message is VoteMessage {
return msg.cleanContent.includes('[Abstimmung]') return message.cleanContent.includes('[Abstimmung]')
} }
export function isInitialAnnouncement(msg: Message): msg is AnnouncementMessage { export function isInitialAnnouncement(message: Message): message is AnnouncementMessage {
return msg.cleanContent.includes("[initial]") return message.cleanContent.includes("[initial]")
} }
export function isVoteEndedMessage(msg: Message): msg is VoteEndMessage { export function isVoteEndedMessage(message: Message): message is VoteEndMessage {
return msg.cleanContent.includes("[Abstimmung beendet]") return message.cleanContent.includes("[Abstimmung beendet]")
} }