How to properly get channel ID?
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!');
}/
}
module.exports = async ( interaction, client, member) => {
const channelID = interaction.channel?.id;
console.log(channelID);
/if (channel.id === '852196626138267698') {
console.log('works!');
}/
}