iperf3exporter/vendor/github.com/DisgoOrg/disgohook/api/allowed_mentions.go
Marvin Preuss 2343c9588a
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is failing
first commit
2021-10-20 10:08:56 +02:00

28 lines
902 B
Go

package api
// DefaultAllowedMentions gives you the default AllowedMentions
var DefaultAllowedMentions = AllowedMentions{
Parse: []AllowedMentionType{AllowedMentionTypeUsers, AllowedMentionTypeRoles, AllowedMentionTypeEveryone},
Roles: []string{},
Users: []string{},
RepliedUser: true,
}
// AllowedMentions are used for avoiding mentioning users in Message and Interaction
type AllowedMentions struct {
Parse []AllowedMentionType `json:"parse"`
Roles []string `json:"roles"`
Users []string `json:"users"`
RepliedUser bool `json:"replied_user"`
}
// AllowedMentionType ?
type AllowedMentionType string
// All AllowedMentionType(s)
const (
AllowedMentionTypeRoles AllowedMentionType = "roles"
AllowedMentionTypeUsers AllowedMentionType = "users"
AllowedMentionTypeEveryone AllowedMentionType = "everyone"
)