From a8ba5b5be97c6120444608bd75a204163fc4aa22 Mon Sep 17 00:00:00 2001 From: Hsu Still <341464@gmail.com> Date: Wed, 27 Sep 2017 05:04:59 +0800 Subject: [PATCH] Fix Context warning note and add ReplyAsync xref --- docs/guides/commands/commands.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/guides/commands/commands.md b/docs/guides/commands/commands.md index f66a2a965..8d65550f9 100644 --- a/docs/guides/commands/commands.md +++ b/docs/guides/commands/commands.md @@ -132,13 +132,14 @@ will not need to cast them. To reply to messages, you may also invoke [ReplyAsync], instead of accessing the channel through the [Context] and sending a message. -[Context]: xref:Discord.Commands.ModuleBase`1#Discord_Commands_ModuleBase_1_Context -[SocketCommandContext]: xref:Discord.Commands.SocketCommandContext - ->![WARNING] +> [!WARNING] >Contexts should **NOT** be mixed! You cannot have one module that >uses CommandContext and another that uses SocketCommandContext. +[Context]: xref:Discord.Commands.ModuleBase`1#Discord_Commands_ModuleBase_1_Context +[SocketCommandContext]: xref:Discord.Commands.SocketCommandContext +[ReplyAsync]: xref:Discord.Commands.ModuleBase`1#Discord_Commands_ModuleBase_1_ReplyAsync_System_String_System_Boolean_Discord_Embed_Discord_RequestOptions_ + ### Example Module At this point, your module should look comparable to this example: