making use of the extended perms and added future work
This commit is contained in:
1 parent
296e465f48
commit
22fd8fbce8
19 files changed
+617
-40
No files matched your search
@@ -62,8 +62,20 @@ type Session struct {
|
||||
ACPID string `json:"acp_id"`
|
||||
Title string `json:"title"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
|
||||
// Empty means the channel's default.
|
||||
Listen ListenMode `json:"listen,omitempty"`
|
||||
}
|
||||
|
||||
// Whether the bot reads every reply in a channel thread, or only ones that
|
||||
// @mention it. DMs always read everything.
|
||||
type ListenMode string
|
||||
|
||||
const (
|
||||
ListenMentions ListenMode = "only-mentions"
|
||||
ListenAll ListenMode = "all-messages"
|
||||
)
|
||||
|
||||
func MachineName(id string, kind OwnerKind) string {
|
||||
if kind == OwnerChannel {
|
||||
return "c-" + strings.ToLower(id)
|
||||
|
||||
Reference in new issue
Block a user