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 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]")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue