Alchemy.Client.send_message

You're seeing just the function send_message, go back to Alchemy.Client module for more information.
Link to this function

send_message(channel_id, content, options \\ [])

Sends a message to a particular channel

Options

  • tts used to set whether or not a message should be text to speech
  • embed used to send an Embed object along with the message
  • file used to send a file along with the message

    Examples

    {:ok, message} = Client.send_message(chan_id, "pong!")
    Sending files along with messages is simple as well.
    Client.send_message(chan_id, "here you go!", file: "foo.txt")