You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the problem you are having in as much detail as possible:
In index.d.ts, GuildMemberRoleManager inherits from OverridableManager, which inherits from BaseManager, which implements functions such as resolve and resolveID. This causes these functions to be suggested while writing TypeScript bots. However, the definition does not appear to inherit from anything, and in fact an error is thrown if the BaseManager methods are used:
TypeError: discordMember.roles.resolve is not a function
Include a reproducible code sample here, if possible:
Reproducing this is simple. Just get a GuildMember and name it discordMember. Begin typing discordMember.roles. and the following suggestions will appear:
As you can see, many of them are invalid. If you try to use a BaseManager method, it will throw an error at runtime.
Further details:
discord.js version: 12.4.1
Node.js version: 15.2.0
Operating system: Windows 10
Priority this issue should have – please be realistic and elaborate if possible: Low, just an annoyance
Relevant client options:
partials: N/A
gateway intents: N/A
other: N/A
I have also tested the issue on latest master, commit hash:
The text was updated successfully, but these errors were encountered:
Please describe the problem you are having in as much detail as possible:
In
index.d.ts
,GuildMemberRoleManager
inherits fromOverridableManager
, which inherits fromBaseManager
, which implements functions such asresolve
andresolveID
. This causes these functions to be suggested while writing TypeScript bots. However, the definition does not appear to inherit from anything, and in fact an error is thrown if theBaseManager
methods are used:Include a reproducible code sample here, if possible:
Reproducing this is simple. Just get a
GuildMember
and name itdiscordMember
. Begin typingdiscordMember.roles.
and the following suggestions will appear:As you can see, many of them are invalid. If you try to use a
BaseManager
method, it will throw an error at runtime.Further details:
Relevant client options:
The text was updated successfully, but these errors were encountered: