safetwitch/src/types/Chat.ts

19 lines
391 B
TypeScript
Raw Normal View History

2023-06-18 23:19:20 -04:00
export interface TwitchChatOptions {
login: {
username: string,
password: string
},
channels: string[]
}
export const MessageTypes = ['PRIVMSG', 'WHISPER']
export type MessageType = typeof MessageTypes[number];
export interface Metadata {
username: string
messageType: MessageType
channel: string
message: string
tags: { [k:string]:any }
}