1632 Commits

Author SHA1 Message Date
Magnus Jensen
22e5cd898d feat(restapi): Add support for voice state API endpoints (#1671) 2025-11-22 17:25:03 +03:00
Bennett Amodio
c144aa1605 fix(GuildMembers): populate GuildID for consistency with GuildMember (#1676) 2025-11-22 13:25:59 +03:00
Magnus Jensen
800fe8599e feat(User): implement PrimaryGuild attribute (#1665) 2025-11-21 22:33:50 +03:00
Magnus Jensen
64188737bb feat(restapi)!: use new channel pins endpoints (#1666)
BREAKING CHANGE: `ChannelMessagesPinned` now has `before` and `limit` arguments
2025-11-21 22:29:39 +03:00
patrickxia
dd9332c711 feat(restapi): retry on 500s, 503s, 504s as well as 502s (#1586) 2025-11-16 18:23:28 +03:00
Magnus Jensen
18d25918de feat(Session): implement GuildRole (#1670) 2025-11-08 18:02:29 +03:00
Simone Tesini
6198d49a2e feat(components)!: implement label component (#1656)
* feat(components): add Label component

* feat: update modals example

* feat(MessageComponentInteractionData): add resolved property

* chore(MessageComponentInteractionDataResolved)!: rename MessageComponentInteractionDataResolved to ComponentInteractionDataResolved
2025-10-26 14:14:32 +03:00
missing person
b2bf06886f chore: typo in comment under Session struct (#1661)
Co-authored-by: sa-dd <asaad5436@gmail>
2025-09-21 13:04:50 +03:00
Vladimir Petrov
30fe1930ba feat(state): add missing BeforeDelete/BeforeUpdate for threads, members, channels and roles (#1647) 2025-08-31 13:37:06 +03:00
Fedor Lapshin
98dc133497 feat(Session): resume gateway url (#1307) 2025-07-05 17:13:50 +03:00
Amir Osama
6c6d3eeea6 fix(Thumbnail): correct typo in JSON tag for Spoiler field (#1637) 2025-07-05 16:54:25 +03:00
chris
4fe330a30c feat(WebhookEdit): add flags (#1638) 2025-07-05 16:53:36 +03:00
Fedor Lapshin
6e8fa27c79 feat(*): bump version to 0.29.0 v0.29.0 2025-05-24 14:19:24 +03:00
Fedor Lapshin
896d441c57 feat(MessageAttachment): add flags (#1626) 2025-05-24 13:38:06 +03:00
Kedas
db5be56702 feat(MessageAttachment): add Waveform and DurationSecs (#1618) 2025-05-24 13:32:00 +03:00
Kedas
9fe3e5749c feat: implement GuildStickersUpdate event (#1614)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2025-05-23 16:31:56 +03:00
Alex
9d43928917 feat(GuildFeature): add new features (#1619) 2025-05-23 16:23:14 +03:00
Laurent Demailly
b17704c793 feat(Session): expose request as RequestRaw (#1560) 2025-05-22 20:29:23 +03:00
Fedor Lapshin
5b2d241b32 feat: components V2 (#1616) 2025-05-22 20:26:51 +03:00
ozraru
f75d834aa5 feat(User): add DisplayName method (#1609) 2025-04-13 16:55:15 +03:00
Derk-Jan Hartman
5571950c90 Fix error in emoji range (#1585)
Use A-Za-z range instead of A-z range
2025-03-30 14:04:04 +03:00
Evan Robinson
69ea356662 feat(structs): add intents for guild and direct message polls (#1612) 2025-03-30 14:03:57 +03:00
Fedor Lapshin
1270b0f9cf feat: add SubscriptionDelete event (#1607) 2025-03-17 16:07:22 +03:00
aping
7f344fbe5e feat: implement Subscription events (#1591) 2025-03-17 12:46:31 +03:00
Alex
d4827e8d77 feat: add guild member banners (#1592) 2025-03-17 12:22:05 +03:00
Fedor Lapshin
2d15f13e65 feat(Message): add MessageSnapshots (#1604) 2025-03-04 13:13:56 +03:00
Elliot Williams
00db80a651 feat(MessageReference): add Type (#1595)
https://discord.com/developers/docs/resources/message#message-reference-types
2025-03-04 12:44:35 +03:00
Jonas
33ffff21d3 Add Entitlements / SKUs (#1552)
Pull Request: https://github.com/bwmarrin/discordgo/pull/1552

Copied Message from Commits:

* add entitlement struct

* add entitlements field to interaction struct

* add event handler for entitlements

* add description to Entitlement struct & type

* properly format changes in entitlement and events

* format entitlement with gofmt

* move entitlement to structs

* add subscription id to entitlement struct and add omitempty

* add endpoints

* add comments to EntitlementTest and EntitlementOwnerType

* add sku struct

* add skus

* fix typo

* rename skuid in entitlement struct

* add comments to SKUFlags

* change entitlement timestamps to time.Time

* rename skuid in entitlement-test struct

* add documentation

* remove undocumented subscriptionID field in entitlement struct

* add documentation

* update documentation

* change order of EntitlementType values

* move optional entitlement filter options into a separate struct

* add premium button component

* add subscriptions

* optimize optional fields in entitlement struct

* Add documentation

* typo

* remove unneccessary pointers
2024-12-08 17:16:00 +10:00
Big Iron
247b6f7a76 Application Emojis (#1566)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-10-06 19:53:15 +03:00
Cyb3r Jak3
0a25bf41b9 feat(VoiceRegion): add missing fields (#1571)
Add the following fields to VoiceRegion struct: Optimal, Deprecated, Custom
2024-10-06 19:50:34 +03:00
Yusta
02e7ea559b feat(interactions): add GetOption method to interaction data structs (#1535)
* Add ApplicationCommandInteractionData.GetOption
* Add ApplicationCommandInteractionDataOption.GetOption

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-10-06 19:47:26 +03:00
PinkNoize
7fded9fd03 fix(PollResults): AnswerCounts json name (#1576) 2024-10-06 19:14:21 +03:00
Ofek Asido
247dbd7f5c fix(auditlog): typo in AuditLogChangeKeyPublicUpdatesChannelID (#1574) 2024-10-01 19:48:13 +03:00
lon
41a66e5f15 feat(Message): add poll field (#1541) 2024-07-29 15:45:23 +03:00
Suhaibinator
d23158b3a3 feat(events): add support for IntegrationXXX events (#1545)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-07-29 15:38:10 +03:00
Kedas
dec4d43ba0 feat(Session): Add GatewayWriteStruct function (#1409)
---------

Signed-off-by: Mia <m@yarn.network>
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-07-07 22:20:55 +03:00
Kevin Cali
4a6d74ef80 feat(ChannelUpdate): add BeforeUpdate (#1539) 2024-07-07 22:13:33 +03:00
Tom Wright
33044e2858 fix(Activity): accept non-string application ids (#1513) 2024-07-07 22:07:35 +03:00
Fuad Daoud
0ad65a2e6f chore(examples/voice_receive): update versions in go.mod and go.sum (#1537) 2024-07-07 22:04:27 +03:00
Earlopain
28f8d4252d feat: add new permissions (#1411) 2024-06-22 17:53:03 +03:00
Julien
5f7833673e feat(AutomoderationActionMetadata): add custom_message (#1515) 2024-06-22 11:59:27 +03:00
Fedor Lapshin
e189ee5de8 feat(Session.UserUpdate)!: add banner support (#1509) 2024-06-21 10:41:08 +03:00
Fedor Lapshin
d26ad10ba6 feat: implement polls (#1525)
* feat: add poll events

* feat: add poll structs

* feat(MessageSend): add poll field

* feat(InteractionResponseData): add poll field

* feat: add endpoints
2024-06-21 10:37:32 +03:00
Fedor Lapshin
a31fd8617e feat: user apps (#1511)
* feat: add integration types

* feat(ApplicationCommand): add integration_types

* feat(interactions): implement contexts

* feat(Interaction): add authorizing_integration_owners

* chore(ApplicationCommand): deprecate DMPermission

* feat(Application): add integration_types_config

* feat(Message): add InteractionMetadata

* feat(ApplicationIntegrationTypeConfig): add omitempty tag to OAuth2InstallParams

* feat(Application): add omitempty tag to IntegrationTypesConfig
2024-06-20 17:56:18 +03:00
Earlopain
cf4e4e070f feat(auditlog): add onboarding and server guide actions (#1532)
Implement https://github.com/discord/discord-api-docs/pull/6041
2024-06-05 23:52:43 +03:00
Ryan Whelan
6af2451cd4 feat(GuildAuditLogEntryCreate): add guild_id (#1367)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-05-26 13:53:13 +03:00
Rareș Nagy
2c9c884e4f chore(tests): fix typo (#1520) 2024-05-14 15:33:16 +03:00
Fedor Lapshin
fd0af7667d feat: add echo example (#1530) 2024-05-10 16:31:08 +03:00
Fedor Lapshin
da9e191069 feat(*): bump version to 0.28.1 v0.28.1 2024-04-01 16:28:16 +03:00
Shadat Rahman
68c6268227 feat: add GUILD_MEDIA and GUILD_DIRECTORY channel types (#1514) v0.28.0 2024-04-01 12:52:13 +03:00