Skip to content

Commit

Permalink
Options (bwmarrin#1299)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
FedorLap2006 authored Jan 15, 2023
1 parent 0a42ffa commit 345a9d6
Showing 1 changed file with 500 additions and 422 deletions.
Loading

0 comments on commit 345a9d6

Please sign in to comment.