From bc6197c5e6c11a998ab4361ff6c91ffcf712423a Mon Sep 17 00:00:00 2001 From: tuckerrrrrrrrrrrr Date: Tue, 10 Sep 2019 18:09:24 -0700 Subject: [PATCH] fix inconsistent tts casing --- message.go | 4 ++-- restapi.go | 2 +- structs.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/message.go b/message.go index 5aab7e5..eb292d5 100644 --- a/message.go +++ b/message.go @@ -63,7 +63,7 @@ type Message struct { MentionRoles []string `json:"mention_roles"` // Whether the message is text-to-speech. - Tts bool `json:"tts"` + TTS bool `json:"tts"` // Whether the message mentions everyone. MentionEveryone bool `json:"mention_everyone"` @@ -106,7 +106,7 @@ type File struct { type MessageSend struct { Content string `json:"content,omitempty"` Embed *MessageEmbed `json:"embed,omitempty"` - Tts bool `json:"tts"` + TTS bool `json:"tts"` Files []*File `json:"-"` // TODO: Remove this when compatibility is not required. diff --git a/restapi.go b/restapi.go index 02909d0..1b63586 100644 --- a/restapi.go +++ b/restapi.go @@ -1588,7 +1588,7 @@ func (s *Session) ChannelMessageSendComplex(channelID string, data *MessageSend) func (s *Session) ChannelMessageSendTTS(channelID string, content string) (*Message, error) { return s.ChannelMessageSendComplex(channelID, &MessageSend{ Content: content, - Tts: true, + TTS: true, }) } diff --git a/structs.go b/structs.go index e7192d9..aa60f12 100644 --- a/structs.go +++ b/structs.go @@ -682,7 +682,7 @@ type Settings struct { RenderEmbeds bool `json:"render_embeds"` InlineEmbedMedia bool `json:"inline_embed_media"` InlineAttachmentMedia bool `json:"inline_attachment_media"` - EnableTtsCommand bool `json:"enable_tts_command"` + EnableTTSCommand bool `json:"enable_tts_command"` MessageDisplayCompact bool `json:"message_display_compact"` ShowCurrentGame bool `json:"show_current_game"` ConvertEmoticons bool `json:"convert_emoticons"`