1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-12-02 20:02:53 +00:00

Gateway: Rename UserGuildMute to UserMuteConfig for correctness

This commit is contained in:
diamondburned 2020-12-19 19:06:09 -08:00
parent 7aff3f9f24
commit d5f3979f95

View file

@ -96,7 +96,7 @@ type (
SuppressRoles bool `json:"suppress_roles"` SuppressRoles bool `json:"suppress_roles"`
SuppressEveryone bool `json:"suppress_everyone"` SuppressEveryone bool `json:"suppress_everyone"`
Muted bool `json:"muted"` Muted bool `json:"muted"`
MuteConfig *UserGuildMute `json:"mute_config"` MuteConfig *UserMuteConfig `json:"mute_config"`
MobilePush bool `json:"mobile_push"` MobilePush bool `json:"mobile_push"`
MessageNotifications UserNotification `json:"message_notifications"` MessageNotifications UserNotification `json:"message_notifications"`
@ -104,22 +104,23 @@ type (
ChannelOverrides []UserChannelOverride `json:"channel_overrides"` ChannelOverrides []UserChannelOverride `json:"channel_overrides"`
} }
// UserGuildMute seems to describe the mute settings of a guild. It belongs
// to the UserGuildSettingEntry struct and is undocumented.
UserGuildMute struct {
SelectedTimeWindow int `json:"selected_time_window"`
EndTime discord.Timestamp `json:"end_time"`
}
// 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 *UserGuildMute `json:"mute_config"` MuteConfig *UserMuteConfig `json:"mute_config"`
MessageNotifications UserNotification `json:"message_notifications"` MessageNotifications 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
// UserGuildSettingEntry and UserChannelOverride structs and is
// undocumented.
UserMuteConfig struct {
SelectedTimeWindow int `json:"selected_time_window"`
EndTime discord.Timestamp `json:"end_time"`
}
// GuildFolder holds a single folder that you see in the left guild panel. // GuildFolder holds a single folder that you see in the left guild panel.
GuildFolder struct { GuildFolder struct {
Name string `json:"name"` Name string `json:"name"`