#How to properly get channel ID?

1 messages · Page 1 of 1 (latest)

jagged nimbus

Hello, all I really want to do is to get the channel ID, but I'm struggling to do so as it prints out as undefined.

module.exports = async ( interaction, client, member) => {
const channelID = interaction.channel?.id;
console.log(channelID);
/*if (channel.id === '852196626138267698') {
console.log('works!');

}*/

}