Trying to just get my bot to send a message in a channel but .send is not a method on my channel variable.
Code (using DiscordX so thats whats up with the decorators) :
@Discord()
export class Send {
@Slash({ name: 'send', description: 'send' })
send(interaction: CommandInteraction): void {
const channel = interaction.client.channels.cache.get(
'1054999990310805586'
);
if (channel) channel.send('test 123');
// ^
// Property 'send' does not exist on type 'Channel'.
// Property 'send' does not exist on type 'CategoryChannel'.
}
}