#Trying to read channels name after it's deleting

7 messages · Page 1 of 1 (latest)

gusty raft
warm flameBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
mellow niche
#

interaction.channel is null

#

show intents

gusty raft
#

const { SlashCommandBuilder, ActionRow, ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, ChannelType, PermissionFlagsBits } = require("discord.js");
const { createTranscript } = require("discord-html-transcripts");

in the file self

#

const { Client, GatewayIntentBits, Collection, Partials } = require(discord.js);
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions],
partials: [Partials.Reaction, Partials.Message, Partials.Channel]
});

in the index

mellow niche
#

Partials.Channel