mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-15 19:33:17 +00:00
Gateway: Added missing Notification constant and SupressRoles field
This commit is contained in:
parent
743a8a8fd9
commit
3a1b1c22fc
|
@ -69,15 +69,27 @@ type UserSettings struct {
|
||||||
|
|
||||||
// A UserGuildSettings stores data for a users guild settings.
|
// A UserGuildSettings stores data for a users guild settings.
|
||||||
type UserGuildSettings struct {
|
type UserGuildSettings struct {
|
||||||
|
GuildID discord.Snowflake `json:"guild_id"`
|
||||||
|
|
||||||
SupressEveryone bool `json:"suppress_everyone"`
|
SupressEveryone bool `json:"suppress_everyone"`
|
||||||
|
SupressRoles bool `json:"suppress_roles"`
|
||||||
Muted bool `json:"muted"`
|
Muted bool `json:"muted"`
|
||||||
MobilePush bool `json:"mobile_push"`
|
MobilePush bool `json:"mobile_push"`
|
||||||
MessageNotifications int `json:"message_notifications"`
|
|
||||||
|
|
||||||
GuildID discord.Snowflake `json:"guild_id"`
|
MessageNotifications Notification `json:"message_notifications"`
|
||||||
ChannelOverrides []SettingsChannelOverride `json:"channel_overrides"`
|
ChannelOverrides []SettingsChannelOverride `json:"channel_overrides"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Notification is the notification setting for a channel or guild.
|
||||||
|
type Notification uint8
|
||||||
|
|
||||||
|
const (
|
||||||
|
AllNotifications Notification = iota
|
||||||
|
NoNotifications
|
||||||
|
OnlyMentions
|
||||||
|
GuildDefaults
|
||||||
|
)
|
||||||
|
|
||||||
type ReadState struct {
|
type ReadState struct {
|
||||||
ChannelID discord.Snowflake `json:"id"`
|
ChannelID discord.Snowflake `json:"id"`
|
||||||
LastMessageID discord.Snowflake `json:"last_message_id"`
|
LastMessageID discord.Snowflake `json:"last_message_id"`
|
||||||
|
|
Loading…
Reference in a new issue