I am currently working, on a rewrite of my discord bot from js to ts. To use typing, I extend the discord.js client, I can not fetch channels and send a message there. How can I work around this, besides using type:any?
my extended client:
export class DiscordClient extends Client {
commands
config
}
This does not work anymore with the Client type set to DiscordClient.
If I set it to any, it works just fine
client.channels.cache
.find((channel) => channel.id == client.config.ids.channelIDs.dev.botTestLobby)
.send({ embeds: [loginMessage] })