Tests[SendWithPriority]
This commit is contained in:
@@ -102,7 +102,7 @@ type MessageJSON struct {
|
||||
SenderIP string `json:"sender_ip"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
Title string `json:"title"`
|
||||
Content *string `json:"body"`
|
||||
Content *string `json:"content"`
|
||||
Priority int `json:"priority"`
|
||||
UserMessageID *string `json:"usr_message_id"`
|
||||
Trimmed bool `json:"trimmed"`
|
||||
|
@@ -86,6 +86,10 @@ func (u User) DefaultChannel() string {
|
||||
return "main"
|
||||
}
|
||||
|
||||
func (u User) DefaultPriority() int {
|
||||
return 1
|
||||
}
|
||||
|
||||
func (u User) MaxChannelNameLength() int {
|
||||
return 120
|
||||
}
|
||||
|
Reference in New Issue
Block a user