Replies: 1 comment 1 reply
-
#5495 fixed most of the above issues. Once #5489 is merged, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please describe the problem you are having in as much detail as possible:
Certain API routes only need the id of a guild / channel / role / user however, the some of the checks use resolve instead of resolveID so raw Snowflakes cannot be passed if the object is not cached
Include a reproducible code sample here, if possible:
This is only one example:
Further details:
medium - this affects multiple routes listed below and makes it impossible to use uncached id's on these routes
Currently Affects the following routes:
Since roles are expected to be cached, this is not currently a problem for most of the mentioned methods.
However, with the v13, intents will make it possible (although unlikely) for these roles to be uncached.
Whenever these methods are being used, the appropriate
Resolvable
types accept snowflakes with no indication that the associated object must be cached, likely because they shouldn't need to bePossible Fixes
resolve
attempt in each chain withresolveID
, passing the validity check off to discordresolve
is used here (other than attempting type checking) that would help clear up the first optionRelevant client options:
partials: Can Vary
gateway intents: Can Vary
other: none
I have also tested the issue on latest master, commit hash: c4c8171
Beta Was this translation helpful? Give feedback.
All reactions