OptionalSendMessageInfo
Allows for the use of lesser used features when sending messages.
Properties
UseTTS
A boolean representing whether the message should be read aloud by text to speach when sent.
UsernameOverride
An optional string containing an override for the webhook's username.
AvatarOverride
An optional string containing a url to an image that'll override the webhook's avatar.
Flags
A MessageFlags instance representing the flags the message will have when sent.
ThreadName
A string containing the name of the forum thread that will be created.
Info
The webhook's channel must be a forum channel for this to have an effect!
Constructors
new(tts, usernameOverride, avatarOverride, flags, threadName)
This method returns a new OptionalSendMessageInfo instance.
Parameters
- useTTS : boolean? - Whether the message should be read by text to speach when sent.
- usernameOverride : string? - An override for the username.
- avatarOverride : string? - A url to an image.
- flags : MessageFlags? - A MessageFlags object.
- threadName : string? - Name of the thread to create.