Velvet
Velvet
`#if` blocks it is, then.
Hmm. Seems to be an issue with the assembly scanning code, since there isn't a check for nested children in groups https://github.com/Remora/Remora.Discord/blob/3818e52/Remora.Discord.Extensions/Extensions/ServiceCollectionExtensions.cs#L71-L77
Also following up on this (has it really been three days already?), I can confirm that adding `t => !t.IsNested` as a type filter works  Thank goodness making extensible...
Ah yes, the deserialization tests. Almost forgot. Thanks!
I suspect [this line](https://github.com/Remora/Remora.Discord/blob/d8013b9ff451a58964d95e6827b196500c68309c/Backend/Remora.Discord.Gateway/Transport/WebSocketPayloadTransportService.cs#L316) may be the cause, as passing a cancelled token to this method would cause it to throw (which is caught), but that doesn't ensure the socket...
In fact, very deep down, the CT will actually abort the socket ([source](https://source.dot.net/#System.Net.WebSockets/System/Net/WebSockets/ManagedWebSocket.cs,492)), which also disposes of said socket, rendering it unusable. ([source](https://source.dot.net/#System.Net.WebSockets/System/Net/WebSockets/ManagedWebSocket.cs,215)) Interestingly, this is somewhat noted in D#+,...
No promises, but I have little better to do so I'll see about fixing this 👍🏽