Home > Blockchain >  Delete channel commands erroring on run (TypeError: Cannot read properties of undefined (reading �
Delete channel commands erroring on run (TypeError: Cannot read properties of undefined (reading �

Time:08-03

I'm trying to add this joke command to my friend-community server which deletes a set of channels triggered by "execute order 66" it's erroring (error below and code). Help would be appreciated! :)

const fetchedChannel1 = client.guilds.cache.get('1004126581112975472');
const fetchedChannel2 = client.guilds.cache.get('1004126603963535570');
const fetchedChannel3 = client.guilds.cache.get('1004127515771666462');
const fetchedChannel4 = client.guilds.cache.get('1004127581836161186');
const fetchedChannel5 = client.guilds.cache.get('1004127590845534228');

client.on('message', async message => {
  if ((message.author.id) === bannedid) {
    if (message.content === 'execute order 66') {
      await message.react('           
  • Related