sam
13a6bf10cc
discord: Support the new username system ( #393 )
...
* add support for the new username system
* rename User.GlobalName to DisplayName
2023-06-07 17:56:07 -07:00
ayn2op
73986699b7
discord: add missing permissions
...
Reference: https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
Related: https://github.com/discord/discord-api-docs/pull/6039
2023-06-07 10:14:17 -07:00
diamondburned
61f2ed7363
discord: Use <@x> for member mentions
2023-05-22 06:02:58 -07:00
ayn2op
fea383c61b
discord: move AppFlagAutoModerationRuleCreateBadge outside
2023-04-07 06:07:05 -07:00
ayn2op
6c1928f183
discord: add AppFlagAutoModerationRuleCreateBadge to ApplicationFlags
...
PR: https://github.com/discord/discord-api-docs/pull/6021
Commit: ad723a1732
2023-04-07 06:07:05 -07:00
ayn2op
b8daf636f0
discord: add Channel field to InteractionEvent struct
...
PR: https://github.com/discord/discord-api-docs/pull/6051
Commit: 88a761816b
2023-04-07 02:44:12 -07:00
hi117
abe3d2aa9b
discord: Imporve StringSelectComponent's description ( #386 )
2023-03-15 15:12:58 -07:00
hi117
f4ec5bc80e
discord: Fix reference to deleted SelectComponent ( #387 )
2023-03-15 15:11:46 -07:00
hi117
c2657da488
discord: Add limit for SelectOption.description ( #388 )
2023-03-15 15:11:08 -07:00
sam
c1cc1b8a54
discord: Add the other select interaction data types ( #377 )
2023-02-21 16:28:14 -08:00
ayn2op
759a2eede5
discord: add missing fields to MessageType enum
2023-02-16 08:05:56 -08:00
ayn2op
53c0da7358
discord: add SuppressNotifications to MessageFlags
...
Related: https://github.com/discord/discord-api-docs/pull/5910
2023-02-11 03:31:13 -08:00
diamondburned
00c3ed4b8a
discord: GuildNews -> GuildAnnouncement
2023-01-31 00:13:50 -08:00
ayn2op
0033d02c11
discord: Add missing fields in Channel struct ( #366 )
2023-01-31 00:09:20 -08:00
ayn2op
05dbf0e2b4
discord: Add Flags field to Member struct ( #369 )
...
Reference: https://github.com/discord/discord-api-docs/pull/5874
2023-01-26 13:09:19 -08:00
ayn2op
57dbdbdbd0
discord: Add missing fields to Application ( #365 )
...
* Add missing fields to Application struct
* Change InstallParams.Permissions type to Permissions from string
2023-01-06 14:44:19 +00:00
ayn2op
97c4be4abf
discord: VoiceState.RequestToSpeakTimestamp nullable ( #367 )
2023-01-06 14:43:46 +00:00
ayn2op
dc3453beaa
discord: Add NitroBasic to UserNitro type ( #364 )
2023-01-02 14:46:14 +07:00
ayn2op
7f6871077a
discord: Add AutoModerationActionMessage ( #362 )
2023-01-02 14:28:43 +07:00
ayn2op
f7164d6520
discord: Add Guild.NSFWLevel ( #363 )
2023-01-02 14:25:45 +07:00
Sam Xie
91c86f02ec
discord: Add PermissionViewGuildInsights ( #355 )
2022-11-24 21:04:52 -08:00
twoscott
1b31249626
discord: Add new select components
2022-11-20 20:17:44 -08:00
twoscott
e5aabda660
discord: Add StringOption Min/MaxLength
2022-11-20 20:16:58 -08:00
diamondburned
329ad0f404
discord: Add AutocompleteOptions.Unmarshal
2022-10-13 23:01:29 -07:00
diamondburned
b6221c6426
discord: Use the right type for AutocompleteOption.Options
2022-10-13 23:01:28 -07:00
diamondburned
70a7a3e44f
discord: Add some omitempty for interaction.go
2022-10-13 23:01:28 -07:00
samhza
0c7539c6d5
discord: Add Attachment.Description ( #347 )
2022-09-28 15:22:29 -07:00
svenwiltink
fa35b32b79
discord: Add ChannelFlags ( #345 )
...
* added ChannelFlags
* Minor style fixes, comment additions
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
2022-09-23 00:00:04 -07:00
svenwiltink
238a91b2fc
discord: Add Tag for forum ( #344 )
...
* Add Tag and TagID for forum capabilities
* set correct json flags
* Fix up naming and minor fixes
Co-authored-by: diamondburned <diamond@arikawa-hi.me>
2022-09-21 13:17:26 -07:00
Sam
5870d04644
discord: Add Message.ApplicationID ( #343 )
2022-09-21 10:30:12 -07:00
diamondburned
d96ce0f54c
discord: Add Guild{Directory,Forum}
2022-09-19 14:55:54 -07:00
p5nbTgip0r
88e467ba8c
discord: Fix json tag for Guild.MFA
2022-08-22 14:43:29 -07:00
diamondburned
7961d18278
discord: ContainerComponents.Unmarshal for number types
...
This commit adds int*, uint* and float* parsing support into
ContainerComponents.Unmarshal.
2022-08-20 09:39:24 -07:00
diamondburned
adce55b02d
discord: Add ContainerComponents.Unmarshal
...
This feature is similar to the one added a few commits prior.
2022-08-15 14:57:30 -07:00
diamondburned
10fd739d9e
discord: Type validation for CommandInteractionOptions.Unmarshal
2022-08-15 00:13:12 -07:00
diamondburned
47c06557c2
discord: Add CommandInteractionOptions.Unmarshal
...
This commit adds an Unmarshal method into CommandInteractionOptions. It
is probably the first commit to break the rule of keeping package
discord simple.
The goal of this rationale is that package discord should continue
prioritizing convenience and ease of use by providing small, helpful
additions without being oversized.
This method, while it uses reflect, is actually fairly small in
implementation. Its functionality should be kept to a bare minimum and
as such will not cover every single use case (but should cover most).
2022-08-14 23:40:06 -07:00
diamondburned
6bf83a4747
discord: Document *TextInputComponent in Component, ContainerComponents
2022-08-14 21:48:37 -07:00
diamondburned
0321b9247f
discord: Document *ModalInteraction in InteractionData
2022-08-14 21:45:47 -07:00
twoscott
2013da8255
discord: Add Invite.URL() methods
2022-07-22 15:35:49 -07:00
twoscott
fb2032d538
discord: name Member guild ID params appropriately
2022-07-20 00:07:55 -07:00
twoscott
c84e7f6712
discord: Fix TextInputComponent min & max fields
2022-07-15 20:36:38 -07:00
diamondburned
8c338b49ba
Fix invalid TextInputComponent.{Min,Max}Values
...
Fixes #333 .
2022-07-15 18:37:39 -07:00
twoscott
e1c4f0f041
discord: Fix comment spacing
2022-07-11 02:47:37 -07:00
twoscott
2c86cfe7a6
discord: Add AttachmentOption type
2022-07-10 14:30:51 -07:00
twoscott
09c3314cc2
discord: Add resolved interaction attachments
2022-07-10 14:30:51 -07:00
Vendicated
c1e8daec60
Add TargetMessageID and TargetUserID convenience functions
2022-07-05 13:21:22 -07:00
Vendicated
fc2319e652
Add GuildID and TargetID to CommandInteraction
2022-07-05 13:21:22 -07:00
diamondburned
384a3dd433
discord: Add NewAPIEmoji
2022-06-23 00:11:27 -07:00
diamondburned
faec1da257
discord: Fix Emoji.String
2022-06-19 23:03:09 -07:00
twoscott
8732dc1ff6
discord: Allow multiple types for AutocompleteOption Value
2022-06-05 17:56:52 -07:00