3
0

Unify join/part structs (json names) with others

This commit is contained in:
Denis Arh
2018-10-17 04:20:09 +02:00
parent 9f013c9c9c
commit ba7181e5ab

View File

@@ -8,18 +8,18 @@ import (
type (
ChannelJoin struct {
// ID of the channel user is joining
ID string `json:"id"`
ID string `json:"channelID"`
// ID of the user that is joining
UserID string `json:"uid"`
UserID string `json:"userID"`
}
ChannelPart struct {
// Channel to part (nil) for ALL channels
ID string `json:"id"`
ID string `json:"channelID"`
// Who is parting
UserID string `json:"uid"`
UserID string `json:"userID"`
}
Channel struct {