fix inconsistent tts casing
This commit is contained in:
parent
1d90c5da95
commit
bc6197c5e6
3 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ type Message struct {
|
||||||
MentionRoles []string `json:"mention_roles"`
|
MentionRoles []string `json:"mention_roles"`
|
||||||
|
|
||||||
// Whether the message is text-to-speech.
|
// Whether the message is text-to-speech.
|
||||||
Tts bool `json:"tts"`
|
TTS bool `json:"tts"`
|
||||||
|
|
||||||
// Whether the message mentions everyone.
|
// Whether the message mentions everyone.
|
||||||
MentionEveryone bool `json:"mention_everyone"`
|
MentionEveryone bool `json:"mention_everyone"`
|
||||||
|
@ -106,7 +106,7 @@ type File struct {
|
||||||
type MessageSend struct {
|
type MessageSend struct {
|
||||||
Content string `json:"content,omitempty"`
|
Content string `json:"content,omitempty"`
|
||||||
Embed *MessageEmbed `json:"embed,omitempty"`
|
Embed *MessageEmbed `json:"embed,omitempty"`
|
||||||
Tts bool `json:"tts"`
|
TTS bool `json:"tts"`
|
||||||
Files []*File `json:"-"`
|
Files []*File `json:"-"`
|
||||||
|
|
||||||
// TODO: Remove this when compatibility is not required.
|
// TODO: Remove this when compatibility is not required.
|
||||||
|
|
|
@ -1588,7 +1588,7 @@ func (s *Session) ChannelMessageSendComplex(channelID string, data *MessageSend)
|
||||||
func (s *Session) ChannelMessageSendTTS(channelID string, content string) (*Message, error) {
|
func (s *Session) ChannelMessageSendTTS(channelID string, content string) (*Message, error) {
|
||||||
return s.ChannelMessageSendComplex(channelID, &MessageSend{
|
return s.ChannelMessageSendComplex(channelID, &MessageSend{
|
||||||
Content: content,
|
Content: content,
|
||||||
Tts: true,
|
TTS: true,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -682,7 +682,7 @@ type Settings struct {
|
||||||
RenderEmbeds bool `json:"render_embeds"`
|
RenderEmbeds bool `json:"render_embeds"`
|
||||||
InlineEmbedMedia bool `json:"inline_embed_media"`
|
InlineEmbedMedia bool `json:"inline_embed_media"`
|
||||||
InlineAttachmentMedia bool `json:"inline_attachment_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"`
|
MessageDisplayCompact bool `json:"message_display_compact"`
|
||||||
ShowCurrentGame bool `json:"show_current_game"`
|
ShowCurrentGame bool `json:"show_current_game"`
|
||||||
ConvertEmoticons bool `json:"convert_emoticons"`
|
ConvertEmoticons bool `json:"convert_emoticons"`
|
||||||
|
|
Loading…
Reference in a new issue