Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RateLimit manager (#219) #233

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
target-branch: develop
ignore:
- dependency-name: "@types/node"
versions:
- 14.14.22
- 14.14.24
- 14.14.25
- 14.14.26
- 14.14.28
- 14.14.30
- 14.14.31
- 14.14.32
- 14.14.33
- 14.14.34
- 14.14.35
- 14.14.36
- 14.14.37
- 14.14.39
- 14.14.41
- 15.0.0
- 15.0.1
- dependency-name: "@types/node-fetch"
versions:
- 2.5.10
- 2.5.9
- dependency-name: "@types/ws"
versions:
- 7.4.1
- dependency-name: discord.js
versions:
- 12.5.2
- dependency-name: typescript
versions:
- 4.1.4
- 4.1.5
- 4.2.2
- 4.2.3
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ As you can see, you're able to load a backup from your own data instead of from
```js
const backup = require("discord-backup");
backup.load(backupData, guild, {
clearGuildBeforeRestore: true
clearGuildBeforeRestore: true,
mode: 'slow', // 'fast', 'auto', 750,
});
```

**clearGuildBeforeRestore**: Whether to clear the guild (roles, channels, etc... will be deleted) before the backup restoration (recommended).
**maxMessagesPerChannel**: Maximum of messages to restore in each channel. "0" won't restore any messages.
**maxMessagesPerChannel**: Maximum of messages to restore in each channel. "0" won't restore any messages.
**mode**: Speed of execute request, the faster it is, the greater the risk of ratelimit, (slow: 1.5s | fast: 0.25s | auto: 0.75s)

## Example Bot

Expand Down
Loading