Commit graph

1614 commits

Author SHA1 Message Date
pothtonswer
bc0aafd6f8 edit README.md 2025-05-14 06:51:38 +09: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 2024-04-01 16:28:16 +03:00
Shadat Rahman
68c6268227
feat: add GUILD_MEDIA and GUILD_DIRECTORY channel types (#1514) 2024-04-01 12:52:13 +03:00
Shadat Rahman
33ee38cbf2
feat(UserGuilds)!: support with_counts parameter (#1500)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-03-15 18:22:29 +03:00
Earlopain
202785c50b
feat(role): add flags (#1410)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-03-07 18:51:22 +03:00
Earlopain
384ff4e9a9
feat(member): add flags (#1499)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-02-29 17:50:39 +03:00
Fedor Lapshin
8968e58b4d
docs(message): remove the mention of Sticker objects 2024-02-26 14:18:02 +03:00
Earlopain
c3f22cb8ab
feat(message)!: use partial sticker objects (#1494) 2024-02-26 14:13:17 +03:00
Joshua Sing
bb405daf68
feat(locales): add spanish LATAM (#1496) 2024-02-26 14:03:17 +03:00
Cyb3r Jak3
15ef2a43d4
fix!: return Webhook struct from WebhookEdit and WebhookEditWithToken (#1497) 2024-02-16 17:06:04 +03:00
AlexeyOplachko
7f80bc7978
fix(message)!: omit empty Components and Embeds (#1483)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-02-03 02:59:38 +03:00
Paul Hamill
afc57886f9
fix(SelectMenuOption)!: omit empty emoji field (#1476) 2024-01-04 22:11:17 +03:00
Joshua Packard
f70a01544f
fix(buttons)!: omit empty emoji field (#1475) 2024-01-04 07:17:34 +03:00
Fedor Lapshin
1ffd696aae
refactor(EndpointRoleIcon): rename hash parameter 2024-01-02 11:19:34 +03:00
Fedor Lapshin
b36e573cd1
chore(EndpointRoleIcon): move closer to related endpoints 2024-01-02 11:19:20 +03:00
SamusAranX
603114195a
feat(roles): add support for icons and unicode emojis (#1334)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-01-02 11:09:44 +03:00
Earlopain
30b2cf22b4
feat(guild): implement onboarding (#1401)
Add guild onboarding endpoints and related structs.
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2024-01-01 08:01:07 +03:00
Koke_Cacao
b3638db82a
feat(interactions): implement Attachments field (#1392)
---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-30 07:24:00 +03:00
Julien Tant
13748a3431
feat(member): add helper function for display name (#1426) 2023-12-29 23:22:24 +03:00
ikafly144
d2fd4c5587
feat(ThreadMember): implement Member field (#1325)
* Add Member field to TreadMember

* Add query params to ThreadMember and ThreadMembers

* Add json tag

* docs: add periods

* fix: gofmt

* docs: document withMember parameter

* docs(Session.ThreadMember): rephrase description of withMember parameter

---------

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2023-12-23 06:44:08 +03:00
Fedor Lapshin
f7800efc52
docs(SelectMenu): correct a typo 2023-12-08 15:51:10 +03:00