fetch channel returns undefined

Hello. I have this code, which worked before I believe:
let theChannel = await client.channels.fetch("1062775764853985321")
theChannel.send("blah")
let theChannel = await client.channels.fetch("1062775764853985321")
theChannel.send("blah")
Now it doesn't work, fetching the channel returns null without any error. {force: true} doesn't help Seems like discord has made some API changes?
6 Replies
24
24•2y ago
does that channel exist
bomi
bomi•2y ago
Thank you for helping with my problem! Yes it exists and it works on the shard that the server is in I think discords API isnt operating fully like intended (right now)
bomi
bomi•2y ago
Thanks I've seen this before, but those times when things worked in unexpected ways there was nothing on that page
24
24•2y ago
either it wasn't reported or there isn't an issue 🙂
bomi
bomi•2y ago
rn the channel fetch works, but not guild fetching Anyway I'm posting here to double check that I'm not making a dumb mistake or there is something that I could learn like a new way to troubleshoot
Want results from more Discord servers?
Add your server