This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
v0.30.x #462
andersfylling
started this conversation in
General
v0.30.x
#462
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Big release
Features:
Channel(id).UpdateBulder(..) => Channel(id).Update(*UpdateChannel)
Params
suffix)Config.RejectEvents
andConfig.DMIntents
are deprecated in favor ofConfig.Intents
KickVoiceParticipant
=>DisconnectVoiceParticipant
to clarify intentIntents
There has been some confusion around RejectEvents and DMIntents. They aren't mutually exclusive, and with privileged events/intents, it makes more sense to explicitly specify which events/intents the bot requires instead.
Currently I will only support setting intents, for simplicity sake. Later I might add an alternative, but the
Config.Intents
field is there to stay, unless Discord deprecated the feature.REST update methods
Until now, Disgord has been using the builder pattern to allow sending default values. See more here: #420
This has been replaced in favor of the typical struct argument, to make methods more consistent and ease maintenance (the code generation was a bit too magical).
breaking changes
Breaking:
Client.Channel(..).CreateInvite(..)
is no longer a builder and takes aCreateInvite
struct.Client.Channel(..).Update(..)
no longer has a reason parameterClient.Guild(..).Role(..).Update(..)
no longer has a reason parameterClient.Guild(..).PruneMembers(..)
InteractionCallback
prefix (disgord.Pong
=>disgord.InteractionCallbackPong
)disgordperf
I hope I have covered everything!
See v0.29.0...v0.30.0 for more information
Thanks to the contributors:
This discussion was created from the release v0.30.0.
Beta Was this translation helpful? Give feedback.
All reactions