You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all! This release, once again, only bumps semantic version of the library and does not contain any new fixes nor features.
Sorry for the inconvenience! See previous release for changelog.
Hi all! This release contains backported fixes for unomitted empty Emoji fields in SelectMenuOption and Button structs.
Previously this would prevent bots from sending / editing select menu and button components, if the requests did not change or include the said field.
This is a backport of a voice UDP handshake change recently made by Discord.
You can read more about the change here. And you can find the list of versions with the fix here.
⚠️If you have any voice related functionality on v0.26.x versions, please update to this patch. Some of the Voice API may stop working in previous patches on March 15th.
Hi all! This release only bumps semantic version of the library and does not contain any new fixes nor features.
This is due to our semantic version previously not matching the actual library version.
Hi all! This release contains backported fixes for unomitted empty Emoji fields in SelectMenuOption and Button structs.
Previously this would prevent bots from sending / editing select menu and button components, if the requests did not change or include the said field.
This is a backport of a voice UDP handshake change recently made by Discord.
You can read more about the change here. And you can find the list of versions with the fix here.
⚠️If you have any voice related functionality on this version, please update to this patch. Some of Voice API may stop working in previous patches on March 15th.
Hi all! This release contains backported fixes for unomitted empty Emoji fields in SelectMenuOption and Button structs.
Previously this would prevent bots from sending / editing select menu and button components, if the requests did not change or include the said field.
This is a backport of a voice UDP handshake change recently made by Discord.
You can read more about the change here. And you can find the list of versions with the fix here.
⚠️If you have any voice related functionality on this version, please update to this patch. Some of Voice API may stop working in previous patches on March 15th.
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:
Some of InteractionResponseTypes were removed. #930
InteractionResponseACKWithSource was renamed to InteractionResponseDeferredChannelMessageWithSource. #930
Type of MinValues in SelectMenu was changed to *float64, to allow for the default values when field isn't set. #1026
InteractionApplicationCommandResponseData has been renamed to InteractionResponseData. #933
ApplicationCommandInteractionData has been removed, use Interaction.ApplicationCommandData() instead. #954
MessageTypeApplicationCommand was replaced by MessageTypeChatInputCommand. #978
API version v9
Now DiscordGo uses API v9! Due to this fact this release includes a couple of breaking changes regarding the API:
Breaking changes
User account login, endpoints and methods were dropped. #1087
Embed now is replaced with Embeds in MessageSend and MessageEdit. #1000
EndpointApplications no longer points to OAuth2 applications. Use EndpointOAuth2Applications for that instead. #856
TargetUserType field in Invite and TargetUserType type are renamed to TargetType. Additionally all the constants named InviteTargetUserType<Name> were renamed to InviteTarget<Name>. See #1105 for more info
RedirectURIs were removed from Application
All user flags now use UserFlag type instead of int. #937
REST API functions now will now return wrapped version of ErrJSONUnmarshal. For error check errors.Is or errors.Unwrap should be used. #924
ErrCodeMaximumFriendsReached and ErrCodeNoteTooLong error codes were removed. #1096
Hi all! v0.23.1 contains a bug fix relating to updating statuses, correcting the casing used in the JSON sent to the gateway, meaning that you can actually update your status now! I envision that there might be more minor fixes in the near future as a continuation of the switch to API v8, but in the meantime make sure to update if you're running into issues with updating your bot's status.
The largest change for this version: the library now uses API version 8! Given the breaking changes in the API, there will be some breaking changes in this version:
Intents are now mandatory. The library continues to default to enabling all non-privileged intents, but it is no longer possible to disable intents entirely like it was in v6. Consequently, the Intents field in the Identify struct is no longer a pointer, and the use of MakeIntent is no longer required.
The Game struct is no more, and UpdateStatus was changed to UpdateGameStatus to better reflect the API structures. The previous uses of Game can now be encompassed in Activity.
Presences and presence updates no longer contain information about nicknames and roles; these are now sent exclusively by guild member updates.
Permissions are now represented by int64 rather than int throughout the library, as although there are no permissions currently above 32 bits, Discord explicitly notes that they expect to add additional permissions in the future.
Permission overwrite types now have constants in the library, rather than requiring a string value.
There will probably be issues that are discovered with the API version change. As always, please feel free to file an issue if any come up!
chi v5, github.com/go-chi/chi/v5 introduces the adoption of Go's SIV to adhere to the current state-of-the-tools in Go.
chi v1.5.x did not work out as planned, as the Go tooling is too powerful and chi's adoption is too wide.
The most responsible thing to do for everyone's benefit is to just release v5 with SIV, so I present to you all,
chi v5 at github.com/go-chi/chi/v5. I hope someday the developer experience and ergonomics I've been seeking
will still come to fruition in some form, see golang/go#44550
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:
3.12→3.23v0.22.0→v0.29.0v1.5.1→v1.5.5v0.1.8→v0.3.2v0.79.1→v0.158.0c0fb7b4→5c1018av1.1.0→v1.2.0v3.0.0→v3.4.0v1.7.0→v1.11.11.15-alpine→1.26-alpinev0.6.0→v0.7.0v1.13.0→v1.13.5Release Notes
bwmarrin/discordgo (github.com/bwmarrin/discordgo)
v0.29.0: DiscordGo v0.29.0Compare Source
What's Changed
Breaking changes
bannerparameter toUserUpdate#1509Activity.ApplicationIDwas changed tojson.Number#1513AuditLogChangeKeyPulibUpdatesChannelIDwas renamed toAuditLogChangeKeyPublicUpdatesChannelID#1574New features
Additions
MessageAttachment.Flags#1626MessageAttachment.WaveformandMessageAttachment.DurationSecs#1618GuildAuditLogEntryCreate.GuildID#1367Session.GatewayWriteStruct#1409AutomoderationActionMetadata.CustomMessage#1515ChannelUpdate.BeforeUpdate#1539Message.Poll#1541ApplicationCommandInteractionData.GetOptionandApplicationCommandInteractionDataOption.GetOption#1535VoiceRegion.Deprecated,VoiceRegion.OptimalandVoiceRegion.Custom#1571MessageReferenceType#1595MessageSnapshotandMessage.MessageSnapshots#1604SubscriptionDeleteevent #1607User.DisplayName#1609GuildStickersUpdateevent #1614Other changes
A-zrange emoji regex #1585Session.requestasSession.RequestRaw#1560Special thanks
Full Changelog: bwmarrin/discordgo@v0.28.1...v0.29.0
v0.28.1: DiscordGo v0.28.1Compare Source
Hi all! This release, once again, only bumps semantic version of the library and does not contain any new fixes nor features.
Sorry for the inconvenience! See previous release for changelog.
v0.28.0: DiscordGo v0.28.0Compare Source
Changelog
Breaking changes
ChannelEdit.Positionis now a pointer #1385Button.Emojiis now a pointer #1475SelectMenuOption.Emojiis now a pointer #1476ComponentsandEmbedsinMessageEditare now pointers #1483WebhookEditandWebhookEditWithTokennow return*Webhook, instead of*Role#1497AuditLogGuildScheduledEventUpdarewas renamed toAuditLogGuildScheduledEventUpdate#1370Message.StickerItemswas changed to[]StickerItem#1494withMemberparameter was added toSession.ThreadMemberandSession.ThreadMembers#1325limitparameter was added toSession.ThreadMembers#1325Features
Additions
WebhookParams.ThreadName#1412SuppressNotificationandIsVoiceMessagemessage flags #1428MessageSend.Flags#1427FailIfNotExistsandSoftReferencetoMessage#1376MessageSend.StickerIDs#1340ApplicationCommandInteractionData.CommandType#1362AuditLogOptions.IntegrationType#1440AuditLogOptions.ApplicationID#1380BotHTTPInteractionsandActiveBotDeveloperuser flags #1465ThreadMember.Member#1325Member.Flags#1499Member.DisplayName#1426AttachmentstoInteractionResponseData,WebhookEditandWebhookParams#1392Session.ShouldReconnectVoiceOnSessionError#1350Role.Flags#1410UpdateCustomStatus#1425GuildDirectoryandGuildMediachannel types #1514Other changes
WebhookEditWithToken#1372EndpointGuildTemplate#1395AuditLogOptionsTypevalues #1413ComponentsandEmbedsinMessageEditto be set to[]#1483ChannelEdit.Positionto be set to0#1385BUTTON_COMPONENT_INVALID_EMOJIerror forButton#1475BUTTON_COMPONENT_INVALID_EMOJIerror forSelectMenuOption#1476Special thanks
Full Changelog: bwmarrin/discordgo@v0.27.1...v0.28.0
v0.27.1: DiscordGo v0.27.1Compare Source
Hi everyone. This is a out-of-schedule release, due to a recent breaking change made by Discord in voice API.
What's changed
Fixes
WithContextoption did not have effect on the request sent byRequestWithLockedBucket#1337ThreadMember.Flagshas not been properly serialized #1335Other changes
Special thanks to @LightningDev1 and @armsnyder.
Full Changelog: bwmarrin/discordgo@v0.27.0...v0.27.1
v0.27.0: DiscordGo v0.27.0Compare Source
What's Changed
Notices / Breaking changes
Sessionnow haveoptions ...RequestOptionat the end of the parameter list #1299New features
Other changes
GuildParamsstruct #1255Ready#1227UpdateWatchStatusfunction #1291State.RoleinApplicationCommandInteractionDataOption.RoleValue#1237GuildScheduledEvent*enum values #1254FilesandAttachmentstoMessageEdit#1253GuildEmojiUpdate#1261omitemptyinMessageEmbedField#1262ResolvedtoMessageComponentInteractionDataMessageComponentInteractionDataResolved struct #1302BeforeMembertoGuildMemberUpdateevent #1304ClientStatustoPresence#1303Channelstruct #1306NSFWfield toApplicationCommand#1310Special thanks
Full Changelog: bwmarrin/discordgo@v0.26.1...v0.27.0
v0.26.3: DiscordGo v0.26.3Compare Source
Hi all! This release contains backported fixes for unomitted empty
Emojifields inSelectMenuOptionandButtonstructs.Previously this would prevent bots from sending / editing select menu and button components, if the requests did not change or include the said field.
v0.26.2: DiscordGo v0.26.2Compare Source
This is a backport of a voice UDP handshake change recently made by Discord.
You can read more about the change here. And you can find the list of versions with the fix here.
v0.26.1: DiscordGo v0.26.1Compare Source
Hi all! This release only bumps semantic version of the library and does not contain any new fixes nor features.
This is due to our semantic version previously not matching the actual library version.
v0.26.0: DiscordGo v0.26.0Compare Source
Get ready! This release is not so big, but is packed with refactoring changes and fixes.
What's Changed
Notices / Breaking changes
DefaultPermissionhas been deprecated in favor ofDefaultMemberPermissionsandDMPermissioninApplicationCommand#1075ApplicationCommandPermissionsBatchEdithas been deprecated #1075Content,ComponentsandEmbedswere made pointers inWebhookEdit#1174GuildTemplate.Descriptionwas made a pointer #1191GuildTemplate.UsageCountwas changed toint#1191GuildChannelandPrivateChannelwere removed due to deprecation #1203InviteTargetEmbeddedApplictionwas renamed toInviteTargetEmbeddedApplication#1211NSFW,Archived,LockedandInvitablewere made pointers inChannelEdit#1199Featureswas changed to[]GuildFeatureinUserGuild#1223ChannelEditnow shares same functional and parameters asChannelEditComplex#1217GuildMemberEditnow shares same functional and parameters asGuildMemberEditComplex#1217ChannelEditComplexwas deprecated in favor ofChannelEdit#1217GuildMemberEditComplexwas deprecated in favor ofGuildMemberEdit#1217nameandrolesparameters ofGuildEmojiEditandGuildEmojiCreatewere placed into aEmojiParamsstruct #1217accessToken,nick,roles,muteanddeafparameters ofGuildMemberAddwere placed in aGuildMemberAddParamsstruct #1217name,color,hoist,permsandmentionparameters ofGuildRoleEditwere placed into aGuildRoleParamsstruct #1217nameanddescriptionparameters ofGuildTemplateCreateandGuildTemplateEditwere placed into aGuildTemplateParamsstruct #1217GuildEmbedEditnow accepts parameters throughGuildEmbedstruct #1217GuildEmbed.Enabledwas made a pointer #1217GuildRoleCreatenow accepts initial role parameters throughGuildRoleParamsstruct #1217gparameter ofGuildEditwas made a pointer, to match other REST methods #1228New features
Other changes
with_localizationsflag inApplicationCommands#1196Dialerproperty toSession#1179 and #1220AppPermissionsfield toInteraction#1206ExpiresAtfield toInvite#1198Featuresfield toUserGuild#1223NameandDescriptionare omitted when unset inGuildTemplate#1191replied_usertoMessageAllowedMentions#1175VoiceState#1190GETprefix forApplicationCommandsbucketID#1193GuildIDfield toApplicationCommand#1207omitemptytochannel_idinMessageReference#1002UserGuildMember#1210GuildMemberParams#1226Special thanks
Full Changelog: bwmarrin/discordgo@v0.25.0...v0.26.0
v0.25.2: DiscordGo v0.25.2Compare Source
Hi all! This release contains backported fixes for unomitted empty
Emojifields inSelectMenuOptionandButtonstructs.Previously this would prevent bots from sending / editing select menu and button components, if the requests did not change or include the said field.
v0.25.1: DiscordGo v0.25.1Compare Source
This is a backport of a voice UDP handshake change recently made by Discord.
You can read more about the change here. And you can find the list of versions with the fix here.
v0.25.0: DiscordGo v0.25.0Compare Source
Hi all! This one is not so feature-rich, but is filled with lots of fixes and missing features.
What's Changed
Breaking changes
omitemptyfromEmbedsinInteractionResponseData,MessageSendandMessageEdit#1106RateLimitPerUserinChannelEditwas made a pointer #1152appIDwas removed from the parameters ofInteractionResponseXXXandFollowupMessageXXX#1125GuildEmojiEditnow resets whitelisted roles of an emoji when provided withnilor empty role slice #1022New features
IconURLforGuildPreview#885GuildWithCounts#885GuildMembersSearch#1150GuildEmoji#1153GuildScheduledEventUserAddandGuildScheduledEventUserDeleteevents #1155GuildMemberEditComplex#1122Other changes
RESTErrortorestapi.go#1130GuildSubscriptionsfield fromIdentifystruct #992Session.Debugis disabled #1043MessageReactionAdd#798NSFWLeveltoGuild#1029FlagstoMessageEdit#973RequestGuildMembersListmethod #1156InviteComplex#1163Special thanks
Full Changelog: bwmarrin/discordgo@v0.24.0...v0.25.0
v0.24.2: DiscordGo v0.24.2Compare Source
Hi all! This release contains backported fixes for unomitted empty
Emojifields inSelectMenuOptionandButtonstructs.Previously this would prevent bots from sending / editing select menu and button components, if the requests did not change or include the said field.
v0.24.1: DiscordGo v0.24.1Compare Source
This is a backport of a voice UDP handshake change recently made by Discord.
You can read more about the change here. And you can find the list of versions with the fix here.
v0.24.0: DiscordGo v0.24.0Compare 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
masterSince
v.0.23.0we've been recommending everyone to use@masterversion 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:
InteractionResponseTypeswere removed. #930InteractionResponseACKWithSourcewas renamed toInteractionResponseDeferredChannelMessageWithSource. #930MinValuesinSelectMenuwas changed to*float64, to allow for the default values when field isn't set. #1026InteractionApplicationCommandResponseDatahas been renamed toInteractionResponseData. #933ButtonEmojiwas renamed toComponentEmoji. #954ApplicationCommandInteractionDatahas been removed, useInteraction.ApplicationCommandData()instead. #954MessageTypeApplicationCommandwas replaced byMessageTypeChatInputCommand. #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
Embednow is replaced withEmbedsinMessageSendandMessageEdit. #1000EndpointApplicationsno longer points to OAuth2 applications. UseEndpointOAuth2Applicationsfor that instead. #856TargetUserTypefield inInviteandTargetUserTypetype are renamed toTargetType. Additionally all the constants namedInviteTargetUserType<Name>were renamed toInviteTarget<Name>. See #1105 for more infoRedirectURIswere removed fromApplicationUserFlagtype instead ofint. #937ErrJSONUnmarshal. For error checkerrors.Isorerrors.Unwrapshould be used. #924ErrCodeMaximumFriendsReachedandErrCodeNoteTooLongerror codes were removed. #1096New features
InviteCreateandInviteDeleteevents #1105Bug fixes
EndpointInvitenow points to correct API endpoint #892Other changes
Requiredflag forresp-typeoption of/responsescommand in slash commands example #886ActivityandGetCustomEmojistoMessage#895Permissionsfield toMember#902github.com/gorilla/websocketwas bumped to 1.4.2 #896ApplicationCommandOptionMentionable#918ApplicationCommandInteractionDataResolved#919UserFlagsconstants types #937SessionStartLimitfield toGatewayBotResponse#949BeforeDeletefield toGuildDelete#962ActivityTypeCompeting#990ActivityTypeWatching#983ApplicationCommandOption#1015Guild.BannerURLmethod #1023MembertoMessageReactionAdd#1042MessageFlagsvalues #1089DefaultPermissionfield toApplicationCommand#1071Disabledfield toSelectMenu#1102Interactionfield toMessage#1112Special thanks
Full Changelog: bwmarrin/discordgo@v0.23.2...v0.24.0
v0.23.2Compare Source
v0.23.1: DiscordGo v0.23.1Compare Source
Hi all! v0.23.1 contains a bug fix relating to updating statuses, correcting the casing used in the JSON sent to the gateway, meaning that you can actually update your status now! I envision that there might be more minor fixes in the near future as a continuation of the switch to API v8, but in the meantime make sure to update if you're running into issues with updating your bot's status.
v0.23.0: DiscordGo v0.23.0Compare Source
Hi all! This is a big one.
API Version 8
The largest change for this version: the library now uses API version 8! Given the breaking changes in the API, there will be some breaking changes in this version:
Intentsfield in theIdentifystruct is no longer a pointer, and the use ofMakeIntentis no longer required.Gamestruct is no more, andUpdateStatuswas changed toUpdateGameStatusto better reflect the API structures. The previous uses ofGamecan now be encompassed inActivity.int64rather thanintthroughout the library, as although there are no permissions currently above 32 bits, Discord explicitly notes that they expect to add additional permissions in the future.There will probably be issues that are discovered with the API version change. As always, please feel free to file an issue if any come up!
Additional Changes
Special Thanks To
v0.22.1Compare Source
go-chi/chi (github.com/go-chi/chi)
v1.5.5Compare Source
v1.5.4Compare Source
github.com/go-chi/chi/v5introduces the adoption of Go's SIV to adhere to the current state-of-the-tools in Go.The most responsible thing to do for everyone's benefit is to just release v5 with SIV, so I present to you all,
chi v5 at
github.com/go-chi/chi/v5. I hope someday the developer experience and ergonomics I've been seekingwill still come to fruition in some form, see golang/go#44550
v1.5.3Compare Source
v1.5.2Compare Source
go-chi/httplog (github.com/go-chi/httplog)
v0.3.2Compare Source
v0.3.1Compare Source
v0.3.0Compare Source
v0.2.5Compare Source
v0.2.4Compare Source
v0.2.3Compare Source
v0.2.2Compare Source
v0.2.1Compare Source
v0.2.0Compare Source
</de
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.