Skip to content

Commit eabf8ee

Browse files
committed
chore(autoresponses): add ws rate limit tag and include info about release
1 parent 4bf2139 commit eabf8ee

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

autoresponses/autoresponses.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
[member-arrive]
22
keyphrases = ["members didn't arrive in time"]
33
content = """
4-
Discord introduced a rate limit on requesting all guild members [(source)](<https://discord.com/developers/docs/change-log#introducing-rate-limit-when-requesting-all-guild-members>)
5-
-# Despite the announced 01/10/2025 rollout date, it only took effect recently.
6-
7-
- Apps may only request all members **once** per **30s** per guild.
4+
Discord introduced a rate limit on requesting all guild members (**once** per **30s** per guild).
85
- You will have to update your code accordingly to make sure this doesn't affect your app.
96
- Look for instances of [`guild.members.fetch()`](<https://discord.js.org/docs/packages/discord.js/stable/GuildMemberManager:Class#fetch>) with no user ids.
10-
-# We are working on making the `GuildMemberManager#fetch()` call reject if we receive this rate limit after requesting members. This will likely land in the next release.
7+
- Starting in version 14.25.0, discord.js rejects the returned Promise and exposes details in `error.data`.
118
-# If you confirmed this cannot be the reason, you can find other caveats [in our guide](<https://discordjs.guide/legacy/popular-topics/errors#members-didnt-arrive-in-time>) <:djsguide:862626783890636830>.
129
"""
1310
reply = true
1411
mention = true
12+
13+
14+
[gw-ratelimit]
15+
keyphrases = ["opcode 8 was rate limited", "gatewayratelimitederror"]
16+
content = """
17+
Discord introduced a rate limit on requesting all guild members (**once** per **30s** per guild).
18+
- Starting in version 14.25.0, discord.js rejects the request and exposes error details in `error.data` but does not re-try automatically.
19+
"""
20+
reply = true
21+
mention = true

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
ButtonStyle,
1414
ChannelType,
1515
MessageReferenceType,
16-
PermissionFlagsBits,
1716
Routes,
1817
} from "discord-api-types/v10";
1918
import { ComponentType, InteractionType } from "discord-api-types/v9";

0 commit comments

Comments
 (0)