Commit graph

1630 commits

Author SHA1 Message Date
pothtonswer
b7db6f0d7e Remove buider.go
Some checks failed
CI / lint (push) Has been cancelled
CI / format (push) Has been cancelled
CI / test (1.13) (push) Has been cancelled
CI / test (1.14) (push) Has been cancelled
CI / test (1.15) (push) Has been cancelled
CI / test (1.16) (push) Has been cancelled
CI / test (1.17) (push) Has been cancelled
CI / test (1.18) (push) Has been cancelled
2025-05-22 03:55:38 +09:00
8946413486 Merge pull request 'ComponentsV2, MessageEmbedBuilder' (#1) from migan/discordmuffin:feature/builder into master
Some checks failed
CI / format (push) Has been cancelled
CI / test (1.13) (push) Has been cancelled
CI / test (1.14) (push) Has been cancelled
CI / test (1.15) (push) Has been cancelled
CI / test (1.16) (push) Has been cancelled
CI / test (1.17) (push) Has been cancelled
CI / test (1.18) (push) Has been cancelled
CI / lint (push) Has been cancelled
Reviewed-on: #1
2025-05-17 22:20:16 +09:00
88a40c83dc
chore: move MessageEmbedBuilder
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / format (pull_request) Has been cancelled
CI / test (1.13) (pull_request) Has been cancelled
CI / test (1.14) (pull_request) Has been cancelled
CI / test (1.15) (pull_request) Has been cancelled
CI / test (1.16) (pull_request) Has been cancelled
CI / test (1.17) (pull_request) Has been cancelled
CI / test (1.18) (pull_request) Has been cancelled
2025-05-17 22:10:00 +09:00
6221ca05b9
feat: add MessageEmbedBuilder 2025-05-17 20:59:25 +09:00
8e0346dc12
feat: Add UnMarshal 2025-05-14 21:25:27 +09:00
4ee5a8485c
fix: json tag 2025-05-14 21:23:03 +09:00
0e882c3f2c
Merge branch 'componentsv2' of https://github.com/bwmarrin/discordgo into develop 2025-05-14 18:51:41 +09:00
pothtonswer
bc0aafd6f8 edit README.md
Some checks failed
CI / format (push) Has been cancelled
CI / test (1.13) (push) Has been cancelled
CI / test (1.14) (push) Has been cancelled
CI / test (1.15) (push) Has been cancelled
CI / test (1.16) (push) Has been cancelled
CI / test (1.17) (push) Has been cancelled
CI / test (1.18) (push) Has been cancelled
CI / lint (push) Has been cancelled
2025-05-14 06:51:38 +09:00
Fedor Lapshin
2a94d95411
feat: add components to unmarshalableMessageComponent.UnmarshalJSON 2025-05-05 13:33:13 +03:00
Fedor Lapshin
bdc047b3f9
feat: implement MarshalJSON 2025-05-05 13:28:28 +03:00
Fedor Lapshin
a1e4f3d201
docs: specify whether component is top-level 2025-05-05 12:05:06 +03:00
Fedor Lapshin
11ab346eaa
godoc fix 2025-04-26 14:20:20 +03:00
Fedor Lapshin
5fd20bb8c2
feat: add docs 2025-04-26 14:17:10 +03:00
Fedor Lapshin
9600402fc1
feat: components v2 structures 2025-04-26 14:05:02 +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
49980810d5
fix id type and add messageflags prefix to IS_COMPONENTS_V2 flag 2025-03-07 22:19:45 +03:00
Fedor Lapshin
4d660d08b9
feat(message): add MessageComponentsV2 flag 2025-03-07 22:16:17 +03:00
Fedor Lapshin
e0f5cdab0a
feat(components): add more types and id field 2025-03-07 22:09:04 +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