fix incorrect branded type

This commit is contained in:
kenobi 2023-11-19 18:24:13 +01:00
parent ca99987a20
commit 081f3c6201

View File

@ -2,9 +2,9 @@ import { Message } from "discord.js";
// branded types to differentiate objects of identical Type but different contents
export type VoteEndMessage = Message & { readonly __brand: 'vote' }
export type VoteEndMessage = Message & { readonly __brand: 'voteend' }
export type AnnouncementMessage = Message & { readonly __brand: 'announcement' }
export type VoteMessage = Message & { readonly __brand: 'voteend' }
export type VoteMessage = Message & { readonly __brand: 'vote' }
export type DiscordMessage = VoteMessage | VoteEndMessage | AnnouncementMessage