aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
825 stars 170 forks source link

Property 'parentId' does not exist on type 'PartialDMChannel' #1284

Closed AdamSaketume26 closed 2 months ago

AdamSaketume26 commented 2 months ago

Which package has the bugs?

The core library

Issue description

i think you forgot to remove partialdmchannel because inside this repo it is only found inside index.d.ts and not used anywhere and giving this type error.

Property 'parentId' does not exist on type 'PartialDMChannel | NewsChannel | StageChannel | TextChannel | ThreadChannel | VoiceChannel'. Property 'parentId' does not exist on type 'PartialDMChannel'.

i cant even do message.channel instanceof PartialDMChannel because it doesnt exist or vscode doesnt import it

Code sample

message.channel.parentId

Package version

discord.js-selfbot-v13@3.3.0

Node.js version

v22.3.0

Operating system

No response

Priority this issue should have

Low (slightly annoying)

Checklist

Additional Information

https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/7e5dd06c2b738818fc6cc5a5a683f644c9bcc053/typings/index.d.ts#L7133

aiko-chan-ai commented 2 months ago

Omg

aiko-chan-ai commented 2 months ago

image I don't think PartialDMChannel will cause any issues, as it seems to come from DMChannel, and DMChannel doesn't have the parentId property.