Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 345a9d6

Browse files
authored
Options (bwmarrin#1299)
* 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
1 parent 0a42ffa commit 345a9d6

File tree

1 file changed

+500
-422
lines changed

1 file changed

+500
-422
lines changed

0 commit comments

Comments
 (0)