MattTheWaz
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Thanks for the follow-up
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
I thought I had, but I can double check later
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Again, I appreciate your help
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
👍🏻
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
I assume
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
And bots don't get permission to send messages in GroupDMs?
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Thank you for your help
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Either way, I'll be using that isSendable()
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Most of my bot has been updated to use slash commands, but I still have some that just read chat
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Sorry, I was mixing two seperate examples. In one example, it's an interaction.channel, in the other it's a message coming from a messagecreate event
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Still looks like a TextBasedChannel type
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Getting it from an interaction
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
So maybe I just need to update the param type
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Let me check. The method I am using this in has the param specified as a TextBasedChannel, since that's what I was getting at the time
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Now I just gotta typeguard my message.channel.sends
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Looks like 5.5 works.
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
Well, I jumped forward from typescript 5.2.0-dev.20230804; it being a weird dev build was one of the reasons I updated. I'll try reverting to those other versions and get back to you
21 replies
DIAdiscord.js - Imagine an app
•Created by MattTheWaz on 10/20/2024 in #djs-questions
Typescript Error 'typeof Client' incorrectly extends base class
In case it is relevant, my tsconfig is pretty simple:
21 replies