forked from pothtonswer/discordmuffin
Options (#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
This commit is contained in:
parent
0a42ffa9da
commit
345a9d6466
1 changed files with 500 additions and 422 deletions
922
restapi.go
922
restapi.go
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue