Gateway: Rename MessageNotifications to Notifications for consistency

This commit is contained in:
diamondburned 2020-12-19 19:22:35 -08:00
parent d5f3979f95
commit 088b304303
1 changed files with 6 additions and 6 deletions

View File

@ -98,8 +98,8 @@ type (
Muted bool `json:"muted"` Muted bool `json:"muted"`
MuteConfig *UserMuteConfig `json:"mute_config"` MuteConfig *UserMuteConfig `json:"mute_config"`
MobilePush bool `json:"mobile_push"` MobilePush bool `json:"mobile_push"`
MessageNotifications UserNotification `json:"message_notifications"` Notifications UserNotification `json:"message_notifications"`
ChannelOverrides []UserChannelOverride `json:"channel_overrides"` ChannelOverrides []UserChannelOverride `json:"channel_overrides"`
} }
@ -107,10 +107,10 @@ type (
// A UserChannelOverride struct describes a channel settings override for a // A UserChannelOverride struct describes a channel settings override for a
// users guild settings. // users guild settings.
UserChannelOverride struct { UserChannelOverride struct {
Muted bool `json:"muted"` Muted bool `json:"muted"`
MuteConfig *UserMuteConfig `json:"mute_config"` MuteConfig *UserMuteConfig `json:"mute_config"`
MessageNotifications UserNotification `json:"message_notifications"` Notifications UserNotification `json:"message_notifications"`
ChannelID discord.ChannelID `json:"channel_id"` ChannelID discord.ChannelID `json:"channel_id"`
} }
// UserMuteConfig seems to describe the mute settings. It belongs to the // UserMuteConfig seems to describe the mute settings. It belongs to the