✨ More detailed notification
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package models
|
||||
|
||||
import "fmt"
|
||||
|
||||
type ChannelType = uint8
|
||||
|
||||
const (
|
||||
@ -25,6 +27,13 @@ type Channel struct {
|
||||
RealmID *uint `json:"realm_id"`
|
||||
}
|
||||
|
||||
func (v Channel) DisplayText() string {
|
||||
if v.Type == ChannelTypeDirect {
|
||||
return "DM"
|
||||
}
|
||||
return fmt.Sprintf("#%s", v.Alias)
|
||||
}
|
||||
|
||||
type NotifyLevel = int8
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user