Make sendMessage async
This commit is contained in:
parent
6852c1243f
commit
1fe136186d
|
@ -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}
|
||||
|
||||
|
|
Reference in New Issue