Commit graph

1630 commits

Author SHA1 Message Date
Fedor Lapshin
401c108917
feat(github): add release template 2022-02-27 13:02:09 +03:00
ToπSenpai
ca264d70ff
add interaction field to message struct (#1112)
* add message interaction field and struct

* Update message.go

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

* Update message.go

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

* Update message.go

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

* add notice when member is present

* correct comment

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-02-26 23:16:57 +03:00
Fedor Lapshin
a4d694738f
feat: min and max constraints for slash command options (#1026)
* feat: min and max constraints for slash command options

* fix: typo

* feat: changed slash command options min-max values to float

* feat: improved min max constraints

* feat: removed helper functions

* fix(examples): helper functions

* feat(components): made MaxValues int in SelectMenu

* fix(examples/components): MaxValues

* feat(interactions#ApplicationCommandOption): removed pointer from MaxValue

* feat(examples): removed helper functions for MinValue and MinValues

* fix(examples): removed newOptionalInt
2022-02-26 21:02:33 +03:00
nitroflap
58b2c2e55d
fix(event): removal of once-handlers 2022-02-26 15:07:48 +03:00
nitroflap
f25b625499
feat(message): added content_type to MessageAttachment 2022-02-26 15:01:01 +03:00
Andres Perez
dd5b9c6c05
Add Guild Member avatar (#1077)
* Add guild member avatar

* add avatar field on Member struct

* add endpoints for guild avatars

* add avatarURL util function for *User.AvatarURL and *Member.AvatarURL

* set GuildID on after GuildMember request

* fix Member.Avatar comment

* fix: gofmt

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-02-26 00:26:51 +03:00
Austin Alvarado
70e829694d
Add Invite Create/Delete (#1105)
* Add Invite Create/Delete

* rename const

* Refactor Application

* Feedback & deprecation

* lint fix for godoc comment

* review feedback
2022-02-26 00:13:27 +03:00
Fahim-Ferdous
4cc53b7ed4
Removal procedure for slash commands example (#1103)
Remove commands on exit.
2022-02-23 20:59:04 +03:00
Reed Trevelyan
0b48d46eef
add disable prop to selectMenu (#1102) 2022-02-22 00:14:47 +03:00
Riley
8ac9c13dda
Guild Template (#1091)
* feat: guild templates

* task(endpoints): go fmt endpoints

* task(endpoints): go fmt

* docs(restapi): resolve suggestions from code review

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

* fix(restapi): add missing image field

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-02-21 01:00:36 +03:00
Flexolk
b7ce746717
Add get guild stickers support (#1095)
* Add get guild stickers support

* fix: change the type of Stickers of StickerPack to array pointer
2022-02-18 22:30:56 +03:00
Fedor Lapshin
992358e106
Threads reloaded (#1058)
* feat(endpoints): bumped discord version to 9

* feat: threads barebones

* feat(threads): documentation

* feat(threads): membership caching

* feat(threads): added type to StartThread method

* fix: replaced missing Timestamp definitions with time.Time

* chore: removed debug logs

* chore: removed thread alias for channel type

* feat(webhooks): separated thread option into method

* fix(state): ThreadMembersUpdate member duplication bug

* fix: golint

* feat(threads): pr fixes and BeforeUpdate in ThreadUpdate

* feat: removed unnecessary todo

* feat(state): removed thread last message update in MessageAdd

* Revert "feat(state): removed thread last message update in MessageAdd"

This reverts commit 4ca359fd2cc304e5d0ec2937e25c0c487a1f2096.

* feat(state): update only last message id for thread update

Implements updating message id in MESSAGE_CREATE and MESSAGE_DELETE events. Refer to https://discord.com/developers/docs/topics/gateway#thread-update for more info.

* fix(restapi): passing threadID in WebhookThreadExecute

* feat(state): dropped last_message_id updates for threads

* fix: gofmt

* feat(events#ThreadCreate): added newly_created field

* feat(restapi)!: corrected names of thread functions
2022-02-17 22:50:42 +03:00
aidan michael lineberry
6015eed933
Vectorization of DiscordGo mark (#1099)
* Add vector imagination of discordgo.png

* Delete discordgo.png

* Update README.md to use vector artwork

Added alternative text and used relative reference to artwork

* README.md more meaningful alt text

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

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
2022-02-16 23:23:27 +03:00
Fedor Lapshin
e39ed2f8ce
feat(restapi): reworded comment of GuildApplicationCommandsPermissions 2022-02-16 22:38:08 +03:00
Bjorn Zandvliet
d5bacb5401
Add Default Permission to #943 (#1071)
* Create edit application command permissions endpoint

* Add remaining command permissions endpoints

* Clean up naming a bit

* Add docs for application command permissions endpoints

* Update comments

* More comments

* :^)

* Put the verb in API method names at the end

* Review feedback

* Add default permissions

* feat(restapi): rewording of comments to application command permissions endpoints

* fix(rest): errors for application commands permissions endpoints

* style(interactions): changed order of fields in ApplicationCommand

Co-authored-by: NotUnlikeTheWaves <hleistra@gmail.com>
Co-authored-by: nitroflap <fe.lap.prog@gmail.com>
2022-02-16 22:17:26 +03:00
Fedor Lapshin
0a0955c5f9
Application commands: attachment option (#1088)
* feat(interactions): application command attachment option

* fix(interactions): corrected application command attachment option type
2022-02-16 21:02:44 +03:00
nitroflap
0494cdf33c
feat(components): added comment to MessageComponentFromJSON 2022-02-16 16:50:33 +03:00
nitroflap
fca422b28f
fix(examples): signal.Notify unbuffered channel 2022-02-16 16:47:30 +03:00
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