Skip to content
Snippets Groups Projects
Commit 8e2a1452 authored by Reviath's avatar Reviath
Browse files

fixed vote command

parent 690b93e1
No related branches found
No related tags found
No related merge requests found
const Discord = require('discord.js');
exports.run = (client, message, args) => {
message.delete();
let question = args.join(' ');
let user = message.author.username
if (!question) return message.channel.send(
new Discord.MessageEmbed()
.addField(`<a:x_:801038779955150888> Neyi Oylama Yapacağını Yazmadın`)).then(m => m.delete(5000));
if (!question) return message.channel.send('Ne için oylama yapacaksın')
const embed = new Discord.MessageEmbed()
.setColor("RED")
.setThumbnail(client.user.avatarURL())
.setTimestamp()
.setFooter('Oylama Başladı', client.user.avatarURL())
.addField(`**Oylama Başladı**`, `**${question}**`).then(function(message) {
.addField(`**Oylama Başladı**`, `**${question}**`)
message.channel.send(embed).then(function(message) {
message.react('801039054694514691');
message.react('801038779955150888');
})
message.channel.send(embed).catch(e => {
client.channels.cache.get('790640302452375562').send(`Error on oylama command \n${e}`)
});
message.channel.send(embed);
};
module.exports.help = {
name: 'oylama',
aliases: []
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment