Skip to content

OptionalExecuteInfo


Properties


OptionalExecuteInfo.threadId : string?

The id of the thread the message should go to.




OptionalExecuteInfo.tts : boolean

Whether the message should be tts.




OptionalExecuteInfo.usernameOverride : string?

An override for the webhook's username.




OptionalExecuteInfo.avatarOverride : string?

A url to an image that'll override for the webhook's avatar.




OptionalExecuteInfo.messageFlags : MessageFlags

A MessageFlags object.




OptionalExecuteInfo.threadName : string?

The name of the thread to create.

Warning

Requires the webhook's channel to be a forum channel!




Methods


OptionalExecuteInfo.new(threadId : string?, tts : boolean?, usernameOverride : string?, avatarOverride : string?, messageFlags : MessageFlags?, threadName : string?) : OptionalExecuteInfo

This method returns a new OptionalExecuteInfo object.

Warning

If both threadId and threadName are given an error will occur!

Note

If tts is left nil it will default to false. If messageFlags is left nil it will default to a MessageFlags object with a value of 0.

Parameters

  • threadId: The id of the thread the message should be sent to.
  • tts: Whether the message should be tts.
  • usernameOverride: An override for the webhook's username.
  • avatarOverride: An override for the webhook's avatar.
  • messageFlags: A MessageFlags object.
  • threadName: Name of the thread to create.