Commit graph

1512 commits

Author SHA1 Message Date
nitroflap
d8f15b1bc6
feat(discord_test): check for DGU_TOKEN for compatibility 2022-02-16 16:41:37 +03:00
nitroflap
12b412a989
feat(discord_test): rewrote init as TestMain 2022-02-16 16:39:50 +03:00
nitroflap
3d0ad546d1
feat(discord_test#init): check for oauth2 token 2022-02-16 16:38:21 +03:00
nitroflap
7044ee62cb
fix(examples/avatar): parameters for UserUpdate 2022-02-16 16:32:48 +03:00
nitroflap
e16b1f8e5b
fix(structs): added back old intent definitions for compatibility 2022-02-16 16:31:13 +03:00
Fedor Lapshin
971184a542
CI (#1076)
* feat: ci barebones

* fix(.github/workflows): checkout

* feat(.golangci.yml): removed presets

* feat(workflows/ci): moved matrix to test job

* feat(golangci-lint): disabled all linters except golint

* fix(workflows/ci): golangci-lint action cache fix

* feat(workflows/ci): custom step with golangci-lint on normal commit

* feat(.github/workflows): moved setup-go into individual jobs

* feat(workflows/ci): only new lint issues for pull requests
2022-02-16 16:24:17 +03:00
Pedro Pessoa
c871464295
update intents (#1097) 2022-02-16 15:30:32 +03:00
Pedro Pessoa
115adf2866
add missing json error codes (#1096)
* add missing json error codes

* Update structs.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* Update structs.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* requested changes

* Update structs.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* Update structs.go

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* formatting

* add ErrCodeEmbedDisabled back

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-02-16 15:29:20 +03:00
nitroflap
5ee06354aa
fix: added AuditLogChangeKeyTempoary back for compatibility 2022-02-16 14:57:14 +03:00
Pedro Pessoa
c26bf45ce0
Update auditlog keys and actions (#1098)
* update audit log keys and actions

* remove unncessary tab

* move comments above

* feat: corrected comments for audit log change keys

* fix: typos in audit log change keys comments and definitions

Co-authored-by: nitroflap <fe.lap.prog@gmail.com>
2022-02-16 14:50:16 +03:00
Fedor Lapshin
82c5aae791
Merge pull request #1049 from FedorLap2006/modals
Modals
2022-02-16 02:18:39 +03:00
nitroflap
a731868627
fix(interactions): unnecessary newline between field and comment 2022-02-16 02:16:44 +03:00
nitroflap
195a4c4418
fix(interactions): typo in comment to ModalSubmitData 2022-02-16 02:15:16 +03:00
nitroflap
e44c83a1fc
feat(interactions): added note about modals to InteractionResponse 2022-02-16 02:13:29 +03:00
Fedor Lapshin
d3554153f1
Merge pull request #1089 from constantoine/master
Add MessageFlags values
2022-02-16 01:48:10 +03:00
Fedor Lapshin
6fe303cd29
Merge pull request #1087 from FedorLap2006/master
Dropping user account endpoints and functionality
2022-02-15 23:43:56 +03:00
nitroflap
3f0e0f8650
fix: typo in comment to New function 2022-02-15 23:42:22 +03:00
nitroflap
e6b33f37b7
fix(components): renamed TextInputStyleType to TextInputStyle and fixed example 2022-02-09 14:12:31 +03:00
Fedor Lapshin
21ba398898
feat(components): add omitempty and use TextInputStyle
Co-authored-by: ToπSenpai <15636011+TopiSenpai@users.noreply.github.com>
2022-02-09 14:07:36 +03:00
constantoine
7248e0673e Explicit values 2022-02-09 11:59:10 +01:00
constantoine
f4ad6e85ea Add MessageFlags values 2022-02-09 11:23:02 +01:00
Fedor Lapshin
147703db8e
feat(components): renamed TextStyleType to TextInputStyleType 2022-02-09 03:58:16 +03:00
nitroflap
dcf6fe0128
fix(examples/modals): more renaming of InputText to TextInput 2022-02-09 03:47:44 +03:00
nitroflap
19d46d852a
feat(examples/modals): added MinLength 2022-02-09 03:46:09 +03:00
nitroflap
1b48b9b22e
fix(examples/modals): renamed InputText to TextInput 2022-02-09 03:45:50 +03:00
nitroflap
a0095c14ed
chore(components): rename InputText to TextInput 2022-02-09 03:39:28 +03:00
nitroflap
a8b351019f
feat(*): dropped more undocumented endpoints 2022-02-08 20:43:43 +03:00
nitroflap
d5c82ad374
feat(*)!: dropped undocumented endpoints 2022-02-08 18:25:24 +03:00
nitroflap
5bf32ec183
feat: dropped unnecessary tests for New function 2022-02-08 17:15:51 +03:00
nitroflap
e253d2882e
fix(discord#New): fixed imports and removed MakeIntent 2022-02-08 17:15:49 +03:00
Fedor Lapshin
6ff665e56e
feat: drop email-password session authentication.
This commit drops old email/password authentication for New function.
It violates Discord ToS and due to recent changes in rules for community resources on Discord API Docs it needs to be dropped.
2022-02-08 17:15:43 +03:00
Jordan Cartwright
aba5dc811d
Stickers (#1057)
* added in sticker endpoints

* added sticker objects to messages

* add type to Sticker struct
2022-02-02 14:46:01 -05:00
ToπSenpai
4620fe3034
add interaction locales (#1073)
* add interaction locales

* Typos

* Fix locales documentation link

Co-authored-by: Carson Hoffman <c@rsonhoffman.com>
2022-02-02 14:45:15 -05:00
Riley Smith
29269347e8
Add guild member timeouts (#1061)
* added guild member timeouts

* fix spelling error

* Use time.Time, allow timeout removal

Co-authored-by: Carson Hoffman <c@rsonhoffman.com>
2021-12-27 21:38:45 -05:00
Carson Hoffman
7c455ffc70
Allow marshaling of data field in interactions 2021-12-27 21:34:15 -05:00
Carson Hoffman
fccf6db03e
Remove Timestamp type, use time.Time 2021-12-24 12:38:50 -05:00
nitroflap
09e3d894b7
feat: modal interactions and text input component 2021-12-09 04:03:43 +03:00
Elliot Williams
092735083d
Add Member to MessageReactionAdd (#1042)
https://discord.com/developers/docs/topics/gateway#message-reaction-add
2021-12-04 12:02:45 -05:00
Carson Hoffman
55f4934ba7
Add MessageComponentFromJSON 2021-12-02 15:07:38 -05:00
Fedor Lapshin
fd6228c0d5
Slash commands options auto completion (#1014)
* feat(interactions): options autocompletion

* fix(examples/autocomplete): typo in comment

Replaced "returining" with "returning"
2021-11-16 22:56:33 -05:00
AKU
007bf76790
fix: add missing (*Guild).BannerURL() method (#1023)
Signed-off-by: AKP <tom@tdpain.net>
2021-10-27 19:56:26 -04:00
Fedor Lapshin
f0b7e81468
feat: ephemeral attachments (#1008) 2021-10-10 11:09:59 -04:00
Han Seung Min - 한승민
9f89234f3f
Update invalid link to docs (#1010) 2021-10-10 11:02:24 -04:00
Fedor Lapshin
4249df2359
Channel type restriction (#1015) 2021-10-10 10:59:59 -04:00
xIceArcher
842ddb357a
Support for multiple embeds in message routes (#1000) 2021-10-10 10:56:47 -04:00
rigormorrtiss
0fad116c6c
feat: add ActivityTypeCompeting (5) (#990) 2021-08-21 13:50:00 -04:00
vertex-admin
d655d6df7b
Add BeforeDelete to GuildDelete struct (#962) 2021-08-20 18:48:45 -04:00
vertex-admin
be90532eda
Add SessionStartLimit to GatewayBotResponse struct (#949)
Current GatewayBotResponse struct is missing the information required for max concurrency sharding.
2021-08-20 18:46:59 -04:00
Fedor Lapshin
9d9602318a
Context menus (#978)
* Interactions: context menus

* Example for message context menus

* Added flags to followups

* Example for user context menus

* Godoc fix

* Rebase fix

* Update message types to reflect new separations

Co-authored-by: Carson Hoffman <c@rsonhoffman.com>
2021-08-18 16:16:46 -04:00
Carson Hoffman
f7454d039f
Add more safety around message reference misuse 2021-08-10 21:40:36 -04:00