From 1fe136186debda509fcc3212fe77f8fe61334452 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Tue, 23 Jun 2020 00:07:33 -0500 Subject: [PATCH] Make sendMessage async --- src/nimcord/channel.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimcord/channel.nim b/src/nimcord/channel.nim index eceaa2c..49c057e 100644 --- a/src/nimcord/channel.nim +++ b/src/nimcord/channel.nim @@ -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}