Update to Labs 3.5.0 (#1971)

* Merge https://github.com/Discord-Net-Labs/Discord.Net-Labs into patch/labs3.5.0

* Add missing periods
This commit is contained in:
Quin Lynch
2021-12-19 03:41:58 -04:00
committed by GitHub
parent 52e2019990
commit 6c7502da68
41 changed files with 1097 additions and 272 deletions

View File

@@ -109,15 +109,15 @@ reactions.
Unfortunately, not at the moment. See [#401](https://github.com/discord-net/Discord.Net/issues/401).
[ichannel]: xref:Discord.IChannel
[icategorychannel]: xref:Discord.ICategoryChannel
[iguildchannel]: xref:Discord.IGuildChannel
[itextchannel]: xref:Discord.ITextChannel
[iguild]: xref:Discord.IGuild
[ivoicechannel]: xref:Discord.IVoiceChannel
[iguilduser]: xref:Discord.IGuildUser
[imessagechannel]: xref:Discord.IMessageChannel
[iusermessage]: xref:Discord.IUserMessage
[iemote]: xref:Discord.IEmote
[emote]: xref:Discord.Emote
[emoji]: xref:Discord.Emoji
[IChannel]: xref:Discord.IChannel
[ICategoryChannel]: xref:Discord.ICategoryChannel
[IGuildChannel]: xref:Discord.IGuildChannel
[ITextChannel]: xref:Discord.ITextChannel
[IGuild]: xref:Discord.IGuild
[IVoiceChannel]: xref:Discord.IVoiceChannel
[IGuildUser]: xref:Discord.IGuildUser
[IMessageChannel]: xref:Discord.IMessageChannel
[IUserMessage]: xref:Discord.IUserMessage
[IEmote]: xref:Discord.IEmote
[Emote]: xref:Discord.Emote
[Emoji]: xref:Discord.Emoji

View File

@@ -100,7 +100,7 @@ installation.
### Using Command Line
- [.NET 5 SDK]
* [.NET 5 SDK]
## Additional Information
@@ -143,4 +143,4 @@ by installing one or more custom packages as listed below.
---
[.net 5 sdk]: https://dotnet.microsoft.com/download
[.NET 5 SDK]: https://dotnet.microsoft.com/download

View File

@@ -5,26 +5,29 @@ title: V2 -> V3 Guide
# V2 to V3 Guide
V3 is designed to be a more feature complete, more reliable, and more flexible library than any previous version.
V3 is designed to be a more feature complete, more reliable,
and more flexible library than any previous version.
Below are the most notable breaking changes that you would need to update your code to work with V3.
### GuildMemberUpdated Event
The guild member updated event now passes a `Cacheable<SocketGuildUser, RestGuildUser, IGuildUser, ulong>` for the first argument instead of a normal `SocketGuildUser`. This new cacheable type allows you to download a `RestGuildUser` if the user isn't cached.
### ReactionAdded Event
The reaction added event has been changed to have both parameters cacheable. This allows you to download the channel and message if they aren't cached instead of them being null.
The reaction added event has been changed to have both parameters cacheable.
This allows you to download the channel and message if they aren't cached instead of them being null.
### UserIsTyping Event
THe user is typing event has been changed to have both parameters cacheable. This allows you to download the user and channel if they aren't cached instead of them being null.
The user is typing event has been changed to have both parameters cacheable.
This allows you to download the user and channel if they aren't cached instead of them being null.
### Presence
There is a new event called `PresenceUpdated` that is called when a user's presence changes, instead of `GuildMemberUpdated` or `UserUpdated`. If your code relied on these events to get presence data then you need to update it to work with the new event.
There is a new event called `PresenceUpdated` that is called when a user's presence changes,
instead of `GuildMemberUpdated` or `UserUpdated`.
If your code relied on these events to get presence data then you need to update it to work with the new event.
## Migrating your commands to slash command
The new InteractionService was designed to act like the previous service for text-based commands. Your pre-existing code will continue to work, but you will need to migrate your modules and response functions to use the new InteractionService methods. Docs on this can be found [here](xref:Guides.IntFw.Intro)
The new InteractionService was designed to act like the previous service for text-based commands.
Your pre-existing code will continue to work, but you will need to migrate your modules and response functions to use the new
InteractionService methods. Docs on this can be found in the Guides section.

View File

@@ -37,14 +37,14 @@ for testing and development to eventually get merged into Discord.NET.
[Installing Discord.NET Labs](xref:Guides.GettingStarted.Installation.Labs)
[discord.net labs]: https://github.com/Discord-Net-Labs/Discord.Net-Labs
[Discord.NET Labs]: https://github.com/Discord-Net-Labs/Discord.Net-Labs
## Questions?
Frequently asked questions are covered in the
FAQ. Read it thoroughly because most common questions are already answered there.
Frequently asked questions are covered in the
FAQ. Read it thoroughly because most common questions are already answered there.
If you still have unanswered questions after reading the [FAQ](xref:FAQ.Basics.GetStarted), further support is available on
If you still have unanswered questions after reading the [FAQ](xref:FAQ.Basics.GetStarted), further support is available on
[Discord](https://discord.gg/dnet).
## Commonly used features