#send is not a function

1 messages · Page 1 of 1 (latest)

clever dagger
#

Hello
I have this code

let ch = client.channels.fetch('channelID')
ch.send(_msg)

and I'm getting this error
send is not a function

teal venture
#

await the promise from fetch

#

or just use cache.get('id')
all guild channels (except threads ig) are cached

clever dagger
teal venture
#

yes

clever dagger
teal venture
#

make your func async

#

or use cache, as i said

clever dagger
#

ah yes , forgot that