Factories¶
Mock implementation of a discord.gateway.DiscordWebSocket
. Overwrites a Client’s default websocket, allowing
hooking of its methods to update the backend and provide callbacks.
- class FakeWebSocket(*args: Any, **kwargs: Any)¶
A mock implementation of a
DiscordWebSocket
. Instead of actually sending information to discord, it simply triggers calls to thedpytest
backend, as well as triggering runner callbacks.