Closed JasonKDarby closed 5 years ago
There is a send-message function
in the http
name space that you should be able to leverage to send
unprompted messages.
Thanks again! It was super easy. I was able to store the channel from a message to the bot and then call discord.http/send-message
using (:auth (:client my-bot))
where my-bot was the returned value from discord.bot/create-bot
.
I'm looking to set up a reminder such that the bot will post a message to a specific channel on a specific server on a schedule.
I see that
say
needs to be called within the context ofbuild-handler-fn
and can't specify a channel directly. I also see thatsay*
looks like it can specify a channel but is private. I tried debugging to check out amessage
'schannel
and saw that it only had anid
. Could I potentially use that id or just save that entirechannel
object if I tried to make asay
function that worked outside ofbuild-handler-fn
?Is there already a way to do what I'm looking for or maybe there's a better way to go about it?
Thanks!