Make sendMessage async

This commit is contained in:
SeanOMik 2020-06-23 00:07:33 -05:00
parent 6852c1243f
commit 1fe136186d
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ proc newInvite*(json: JsonNode): Invite {.inline.} =
return invite
proc sendMessage*(channel: Channel, content: string, tts: bool = false, embed: Embed = nil, files: seq[DiscordFile] = @[]): Message =
proc sendMessage*(channel: Channel, content: string, tts: bool = false, embed: Embed = nil, files: seq[DiscordFile] = @[]): Future[Message] {.async.} =
## Send a message through the channel.
var messagePayload = %*{"content": content, "tts": tts}