From 84087d5db90246d5ba53e0080746209429d1fdb9 Mon Sep 17 00:00:00 2001 From: Nac Date: Thu, 2 Mar 2017 21:45:28 +0100 Subject: [PATCH] Update events.md --- docs/guides/events.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/events.md b/docs/guides/events.md index b10dc7648..ddf8c45b6 100644 --- a/docs/guides/events.md +++ b/docs/guides/events.md @@ -9,7 +9,7 @@ Messages from Discord are exposed via events, and follow a pattern of `Func<[eve To hook into events, you must be using the @Discord.WebSocket.DiscordSocketClient, which provides WebSocket capabilities, necessary for receiving events. >[!NOTE] ->The gateway will wait for all registered handlers of an event to finish before raising the next event. As a result of this, it is reccomended that if you need to perform any heavy work in an event handler, it is done on its own thread or Task. +>The gateway will wait for all registered handlers of an event to finish before raising the next event. As a result of this, it is recommended that if you need to perform any heavy work in an event handler, it is done on its own thread or Task. **For further documentation of all events**, it is reccomended to look at the [Events Section](xref:Discord.WebSocket.DiscordSocketClient#events) on the API documentation of @Discord.WebSocket.DiscordSocketClient @@ -25,4 +25,4 @@ Connection Events will be raised when the Connection State of your client change [DiscordSocketClient.Ready](xref:Discord.WebSocket.DiscordSocketClient#Discord_WebSocket_DiscordSocketClient_Ready) is raised when the `READY` packet is parsed and received from Discord. >[!NOTE] ->The [DiscordSocketClient.ConnectAsync](xref:Discord.WebSocket.DiscordSocketClient#Discord_WebSocket_DiscordSocketClient_ConnectAsync_System_Boolean_) method will not return until the READY packet has been processed. By default, it also will not return until the guild stream has finished. This means it is safe to run bot code directly after awaiting the ConnectAsync method. \ No newline at end of file +>The [DiscordSocketClient.ConnectAsync](xref:Discord.WebSocket.DiscordSocketClient#Discord_WebSocket_DiscordSocketClient_ConnectAsync_System_Boolean_) method will not return until the READY packet has been processed. By default, it also will not return until the guild stream has finished. This means it is safe to run bot code directly after awaiting the ConnectAsync method.