From f312b914ff6de3a036b8c8af6bedd7c3bad9a696 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 17 Jun 2020 23:51:20 -0500 Subject: [PATCH] Fix code block thing for documentation --- src/channel.nim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/channel.nim b/src/channel.nim index 8834ccd..e87c188 100644 --- a/src/channel.nim +++ b/src/channel.nim @@ -31,7 +31,7 @@ type parentID: snowflake ## ID of the parent category for a channel lastPinTimestamp: string ## When the last pinned message was pinned - ChannelModify* {.requiresInit.} = ref object + ChannelModify* = ref object ## Use this type to modify a channel by setting each fields. name*: Option[string] `type`*: Option[ChannelType] @@ -99,10 +99,9 @@ proc modifyChannel*(channel: Channel, modify: ChannelModify): Future[Channel] {. ## Modifies the channel. ## ## Examples: - ## ```nim - ## var chan = getChannel(703084913510973472) - ## chan = chan.modifyChannel(ChannelModify(topic: some("This is the channel topic"))) - ## ``` + ## .. code-block:: nim + ## var chan = getChannel(703084913510973472) + ## chan = chan.modifyChannel(ChannelModify(topic: some("This is the channel topic"))) var modifyPayload = %*{}