mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-30 18:53:30 +00:00
Gateway: Rename UserGuildMute to UserMuteConfig for correctness
This commit is contained in:
parent
7aff3f9f24
commit
d5f3979f95
|
@ -96,7 +96,7 @@ type (
|
|||
SuppressRoles bool `json:"suppress_roles"`
|
||||
SuppressEveryone bool `json:"suppress_everyone"`
|
||||
Muted bool `json:"muted"`
|
||||
MuteConfig *UserGuildMute `json:"mute_config"`
|
||||
MuteConfig *UserMuteConfig `json:"mute_config"`
|
||||
|
||||
MobilePush bool `json:"mobile_push"`
|
||||
MessageNotifications UserNotification `json:"message_notifications"`
|
||||
|
@ -104,22 +104,23 @@ type (
|
|||
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
|
||||
// users guild settings.
|
||||
UserChannelOverride struct {
|
||||
Muted bool `json:"muted"`
|
||||
MuteConfig *UserGuildMute `json:"mute_config"`
|
||||
MuteConfig *UserMuteConfig `json:"mute_config"`
|
||||
MessageNotifications UserNotification `json:"message_notifications"`
|
||||
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 struct {
|
||||
Name string `json:"name"`
|
||||
|
|
Loading…
Reference in a new issue