Closed ire4ever1190 closed 2 years ago
Like this instead?
proc editMessage*(api: RestApi, channel_id, message_id: string;
content = ""; tts = false; flags = none(int);
embeds = newSeq[Embed](), components = newSeq[MessageComponent]()):
Future[Message] {.async.} =
Like this instead?
proc editMessage*(api: RestApi, channel_id, message_id: string; content = ""; tts = false; flags = none(int); embeds = newSeq[Embed](), components = newSeq[MessageComponent]()): Future[Message] {.async.} =
Sort of
proc editMessage*(api: RestApi, channel_id, message_id: string;
content = ""; tts = false; flags = none(int);
embeds = newSeq[Embed](),
components = newSeq[MessageComponent]()): Future[Message] {.async.} =
Or
proc editMessage*(api: RestApi, channel_id, message_id: string;
content = ""; tts = false; flags = none(int);
embeds = newSeq[Embed](),
components = newSeq[MessageComponent]()
): Future[Message] {.async.} =
Think I copied my example wrong before somehow.
Code already looks like this so is it fine?
proc editMessage*(api: RestApi, channel_id, message_id: string;
content = ""; tts = false; flags = none(int);
embeds = newSeq[Embed](),
components = newSeq[MessageComponent]()): Future[Message] {.async.} = # 77 chars longs
Its alright
Any updates?
Every line is under 80 characters and it works so is ready for merge
Allows
editMessage
to edit message components