mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-15 09:50:27 +00:00
50 lines
1.5 KiB
Go
50 lines
1.5 KiB
Go
package slack
|
|
|
|
// GroupCreatedEvent represents the Group created event
|
|
type GroupCreatedEvent struct {
|
|
Type string `json:"type"`
|
|
User string `json:"user"`
|
|
Channel ChannelCreatedInfo `json:"channel"`
|
|
}
|
|
|
|
// XXX: Should we really do this? event.Group is probably nicer than event.Channel
|
|
// even though the api returns "channel"
|
|
|
|
// GroupMarkedEvent represents the Group marked event
|
|
type GroupMarkedEvent ChannelInfoEvent
|
|
|
|
// GroupOpenEvent represents the Group open event
|
|
type GroupOpenEvent ChannelInfoEvent
|
|
|
|
// GroupCloseEvent represents the Group close event
|
|
type GroupCloseEvent ChannelInfoEvent
|
|
|
|
// GroupArchiveEvent represents the Group archive event
|
|
type GroupArchiveEvent ChannelInfoEvent
|
|
|
|
// GroupUnarchiveEvent represents the Group unarchive event
|
|
type GroupUnarchiveEvent ChannelInfoEvent
|
|
|
|
// GroupLeftEvent represents the Group left event
|
|
type GroupLeftEvent ChannelInfoEvent
|
|
|
|
// GroupJoinedEvent represents the Group joined event
|
|
type GroupJoinedEvent ChannelJoinedEvent
|
|
|
|
// GroupRenameEvent represents the Group rename event
|
|
type GroupRenameEvent struct {
|
|
Type string `json:"type"`
|
|
Group GroupRenameInfo `json:"channel"`
|
|
Timestamp string `json:"ts"`
|
|
}
|
|
|
|
// GroupRenameInfo represents the group info related to the renamed group
|
|
type GroupRenameInfo struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Created string `json:"created"`
|
|
}
|
|
|
|
// GroupHistoryChangedEvent represents the Group history changed event
|
|
type GroupHistoryChangedEvent ChannelHistoryChangedEvent
|