* feat(Ready): add shard and application fields
Add missing Shard and Application fields to Ready event struct.
* feat(Ready): make Shard pointer
Make Shard field pointer to be consistent with the API.
* feat: forums
Initial implementation of forum channels REST API
* fix: linter
* feat: cosmetic changes
Added periods in the end of all documentation comments
* fix(ChannelFlagRequireTag): incorrect value
Fix incorrect value of ChannelFlagRequireTag.
* refactor(DefaultReaction): rename to ForumDefaultReaction
Rename DefaultReaction to ForumDefaultReaction.
* fix(Channel): use ForumDefaultReaction
Use ForumDefaultReaction instead of DefaultReaction in DefaultReactionEmoji field.
* fix: gofmt
* feat: cosmetic changes
* Change "GUILD_FORUM" to "forum" in comment to ForumTag
* Fix spacing for documentation of embeds parameter in ForumThreadStartEmbeds
* docs(ForumThreadStartComplex): align parameters
Align documentation for parameters of ForumThreadStartComplex.
* refactor(GuildRoleEdit)!: use struct params
Refactor GuildRoleEdit to accept parameters using a Params struct.
Therefore also allow partial edits.
* feat(GuildRoleCreate): initial parameters
Make GuildRoleCreate accept a struct with initial parameters for a role
* refactor(ChannelEdit)!: replace ChannelEditComplex
Move funcitonality of ChannelEditComplex to ChannelEdit
* chore: deprecate ChannelEditComplex
* feat(GuildEmbed)!: allow partial edits
* Make fields omitempty
* Make `Enabled` field a pointer
* refactor(GuildEmbedEdit)!: use params struct
Refactor GuildEmbedEdit to accept parameters through GuildEmbed struct
* refactor(GuildMemberEdit)!: replace GuildMemberEditComplex
Move functionality fo GuildMemberEditComplex to GuildMemberEdit
* chore: deprecate GuildMemberEditComplex
* refactor(GuildEmojiCreate)!: use struct params
Refactor GuildEmojiCreate to take parameters using EmojiParams struct.
* refactor(GuildEmojiEdit)!: use struct params
Refactor GuildEmojiEdit to take parameters using EmojiParams struct.
* refactor(GuildMemberAdd)!: use struct params
Refactor GuildMemberAdd to take parameters using GuildMemberAddParams struct.
* refactor(GuildTemplateEdit)!: use struct params
Refactor GuildTemplateEdit to take parameters using GuildTemplateParams struct.
* refactor(GuildTemplateCreate)!: use struct params
Refactor GuildTemplateCreate to take parameters using GuildTemplateParams struct.
* chore(rest)!: use pointers for Params structs
Refactor methods with Params struct to use pointers
* chore: grammar and style fixes in comments
* feat(events)!: drop undocumented structs and fields
* feat(structs)!: drop undocumented structs and fields
* fix(eventhandlers): regenerate event handling code
* fix(Ready): add PrivateChannels back
* feat: auto moderation
* feat(examples/automod): add message content intent
* style(examples/automod): newline between sections
* feat(AutoModerationActionExecution): add user id
Add user_id field to AutoModerationActionExecution event.
* refactor(events): remove todos
Remove TODO comments for AutoModerationRuleUpdate and AutoModerationRuleDelete.
* feat(AutoModerationEventMessageSend): doc comment
Add documentation comment to AutoModerationEventMessageSend constant.
* add GET prefix for ApplicationCommands bucketID
* dont use local variable for bucketID
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* format code
* remove newline
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* fix(structs.go): fix GuildTemplate struct and documentation
* revert(structs.go): change description from a string ptr to a string
* fix(structs.go): make name and description a pointer and omitempty
* fix(structs.go): made Name field not a string pointer. removed extra files
* fix(structs.go): fix Name field not having a type
* Updated RequestGuildMembers method and GuildMembersChunk event struct
* Added nonce support to RequestGuildMembersBatch and code refactoring
* Minor change to RequestGuildMembersBatchList
* Removed usage of []json.Number in RequestGuildMembersBatchList
* Minor update to GuildMembersChunk struct and comments
* Modify GuildEmojiEdit function of restapi.go
Changes function to not omit empty role information. This allows for properly resetting the roles of an emoji, otherwise it appears to be presently impossible to reset the roles (without including a role ID in the edit request).
* feat: code review changes
* feat: fix typo and rephrase
Co-authored-by: nitroflap <fe.lap.prog@gmail.com>
* feat: Add support of StageInstance RESTAPI and Events
* chore: Make the changes for following the current convention of package
* doc: Add missing docs and example for stage-instance
* doc: Add final log for deleted stage instance
* refactor: Prevent trailing slash on stage instance endpoint
* chore: Harmonize params structure
* Update structs.go
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* docs: Remove deprecated doc
* docs: Add new documentation for restapi function
* 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>
* Update restapi.go
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* 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>
* doc: Add sleep in example to let user see by themselves
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>