setResponse

Sends a message to the current channel.

Syntax

setResponse(replyText)

Parameters

  • replyText : The provided text to send. (Optional)

Permissions

Required permissions which the bot must have for this function to work properly:

  • sendmessages
  • sendmessagesinthreads
  • readmessages

Example

setResponse(`Hi! <@${authorId}>`);

Screenshot_20220916_205326