* Add support for new username system in User.String and User.AvatarURL
* Move default avatar index logic from EndpointDefaultUserAvatar into User.DefaultAvatarIndex
---------
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* Add the CommandType field to ApplicationCommandInteractionData
* Remove unnecessary comment
* Change order of the fields
---------
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
Fix usage of an outdated request in RequestWithLockedBucket after applying WithContext option
---------
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* feat(voice): 74 byte udp handshake
Update the format of UDP handshake to use 74 byte packets.
* docs: use new positions in comments
* feat: document type and length fields
Add descriptions of type and length fields to the request packet documentation.
* Add missing parameters/structs
Adds guild icon size parameter, guild banner size parameter, missing ClientStatus struct
* Add missing endpoint for animated banners
* feat: revert ClientStatus changes
Revert addition of ClientStatus since another PR was already merged with
it.
* feat: add documentation for size parameter
* refactor: move icon url logic into separate func
Move logic for icon URLs in various functions into a single iconURL
function. Similar to banner and avatar functions.
Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
* feat: add options for request methods
Add functional options to request, RequestWithBucketID, RequestWithLockedBucket.
These options allow for request modification and overriding REST related Session fields,
such as Client, MaxRestRetries and ShouldRetryOnRateLimit.
* feat: add context and retries options
Implement WithContext and WithMaxRestRetries options.
* feat: add documentation
Add documentation to the options
* feat(rest): add options to methods
Add option arguments to all Session methods.
* feat: add missed forwarded options
* feat: reword documentation
* refactor(requestConfig): rename to newRequestConfig
Rename requestConfig to newRequestConfig to match other
constructor functions naming.
* style: manually revert documentation formatting
Manually revert the formatting of documentation in certain functions.
* feat(UserChannelPermissions): add description of fetchOptions
Add description for fetchOptions parameter of Session.UserChannelPermissions.
* feat(ChannelMessageSendEmbedReply): pass options
Pass options to ChannelMessageSendEmbedsReply call in ChannelMessageSendEmbedReply
* docs(InviteComplex): revert parameter descriptions removal
* feat: role connection metadata
* feat: add role connection endpoints
Add User Application Role Connection endpoints:
* Get User Application Role Connection
* Update User Application Role Connection
* feat: add example
Add basic example to showcase linked roles flow.
* refactor(endpoints): move role connection metadata
Move Application Role Connection Metadata endpoint to other Application
endpoints.
* feat(components): auto-populated selects
* Add component types for user, channel, role and mentionable selects
* Add MenuType field to SelectMenu for customization of select type
* Add basic example for auto-populated selects
* feat: implement SelectMenuType to restrict component types
Implement SelectMenuType to restrict component types that can be used
in MenuType field of SelectMenu structure.
* fix(SelectMenu): default type
Default to SelectMenuComponent type when MenuType is not specified.
* feat(examples/components): add ephemeral
Add ephemeral flag into response to match other component examples.
* feat(examples): option response and refactoring
* Add a response to the selected option.
* Refactor the command to match others.
* Remove showcase of multiple menu types.
* feat: add regex pattern automod trigger
Add regex patterns metadata to AutoModerationTriggerMetadata.
* feat: add regex pattern example
Add showcase of regex filter into auto_moderation example.
* feat: cosmetic changes
Add period to the end of RegexPatterns documentation comment.
* feat(examples/*): add readme
Add README.md to all examples.
* fix(examples): logo image link
* fix(examples): add fixed width to logo
* feat(examples): add titles
* fix(examples/*): make logo smaller
Make DiscordGo logo smaller to match description and title in size.
* fix(examples/avatar): correct avatar url
Use correct logo URL in avatar URL image example.
* fix(examples/slash_commands): wording
Fix wording of "step-by-step tutorial" note.
* 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.