* 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>
* 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
* 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>
* 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>
* 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