Ask coding questions

← Back to all posts
How do I fix this server log poll command
h
NotTqnvirr

Alright so I’m trying to make a server log that logs a command that someone uses so basically I added a server log code into the poll command code and it showed a error

const Discord = require('discord.js');
const { MessageEmbed } = require('discord.js');

module.exports = {
name: 'poll',
description: 'create a poll',
execute(client, message, args) {
if (message.channel.type == "dm") return;
if(!message.member.hasPermission('MANAGE_MESSAGES')) {
return message.channel.send(':x: You need `MANAGE_MESSAGES` to start a poll!')
}

pollchannrl.send(poll);
logChannel.send(endLog)
}
}

It says something is wrong with c.name

Voters
NotTqnvirr