#No channel.send()?

9 messages · Page 1 of 1 (latest)

deep compass
#

It's been a while since I've toyed around with djs and js as a whole, but here in typescript it is not a fan of my .send

abstract flowerBOT
warped kelp
#

what type of channel is ErrorLogChannel?

deep compass
#

const ErrorLogChannel = await bot.channels.fetch('1453199589783109712') as Channel;

it's a text channel

warped kelp
#

Channel can be anything, its best to type it as a TextChannel. also, you don't need to fetch if you have the Guilds intent

#

Channel would be BaseChannel, which doesn't have .send because you can't send to a CategoryChannel

deep compass
#

big thanks!!

warped kelp
#

np