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 speechembed
used to send anEmbed
object along with the messagefile
used to send a file along with the messageExamples
Sending files along with messages is simple as well.{:ok, message} = Client.send_message(chan_id, "pong!")
Client.send_message(chan_id, "here you go!", file: "foo.txt")