1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-03 00:18:31 +00:00

msg.Reply(), remove unused parameter names, remove emote_usage

This commit is contained in:
Kane York 2017-09-15 16:25:52 -07:00
parent 537800956a
commit 8626b476db
2 changed files with 43 additions and 91 deletions

View file

@ -64,6 +64,24 @@ type ClientMessage struct {
origArguments string
}
func (cm ClientMessage) Reply(cmd string, args interface{}) ClientMessage {
return ClientMessage{
MessageID: cm.MessageID,
Command: cmd,
Arguments: args,
}
}
func (cm ClientMessage) ReplyJSON(cmd string, argsJSON string) ClientMessage {
n := ClientMessage{
MessageID: cm.MessageID,
Command: cmd,
origArguments: argsJSON,
}
n.parseOrigArguments()
return n
}
type AuthInfo struct {
// The client's claimed username on Twitch.
TwitchUsername string