msg -> message
This commit is contained in:
parent
20da25f2bf
commit
fc64728a78
@ -8,13 +8,13 @@ export type VoteMessage = Message & { readonly __brand: 'voteend' }
|
||||
|
||||
export type DiscordMessage = VoteMessage | VoteEndMessage | AnnouncementMessage
|
||||
|
||||
export function isVoteMessage(msg: Message): msg is VoteMessage {
|
||||
return msg.cleanContent.includes('[Abstimmung]')
|
||||
export function isVoteMessage(message: Message): message is VoteMessage {
|
||||
return message.cleanContent.includes('[Abstimmung]')
|
||||
}
|
||||
export function isInitialAnnouncement(msg: Message): msg is AnnouncementMessage {
|
||||
return msg.cleanContent.includes("[initial]")
|
||||
export function isInitialAnnouncement(message: Message): message is AnnouncementMessage {
|
||||
return message.cleanContent.includes("[initial]")
|
||||
}
|
||||
export function isVoteEndedMessage(msg: Message): msg is VoteEndMessage {
|
||||
return msg.cleanContent.includes("[Abstimmung beendet]")
|
||||
export function isVoteEndedMessage(message: Message): message is VoteEndMessage {
|
||||
return message.cleanContent.includes("[Abstimmung beendet]")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user