Add and improve extension methods.
Created by: Giggitybyte
Details
This PR aims to bring an extension method from DSharpPlus.CommandsNext
in line with the changes in #649, as well as introduce a similar extension method missing from DSharpPlus.Lavalink
and DSharpPlus.VoiceNext
.
Changes proposed
- Added missing
GetVoiceNextAsync(DiscordShardedClient)
extension method for VoiceNext. - Added missing
GetLavalinkAsync(DiscordShardedClient)
extension method forDSharpPlus.Lavalink
. - GetCommandsNext(DiscordShardedClient) from CommandsNext now awaits its shard initialization call.
- This resulted in a change of return type to
Task<IReadOnlyDictionary<int, CommandsNextExtension>>
- The above resulted in a rename to GetCommandsNextAsync
- This resulted in a change of return type to