Carcraftz / discord.js-patched-v11

A patched version (v11) of the Discord Javascript library. Fixes issues with stage channels in modern Discord versions and prevents your bots from crashing. Built for legacy codebases and reviving open source Discord bots.
Apache License 2.0
6 stars 10 forks source link

Cant use get #8

Open Weberowsky opened 2 years ago

Weberowsky commented 2 years ago
let fetch = require('node-fetch');
let Discord = require('discord.js-selfbot-v11')
const client = new Discord.Client();

const MINUTE = 1000 * 60
var channel_id = '555932873803169794'
var channel = client.channels.get(channel_id)

channel = undefined

enixbr commented 1 year ago

Try using client.channels.cache.get() ?