mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 05:51:42 +02:00
Force Star Logs Removal
This commit is contained in:
@@ -89,7 +89,6 @@ client.on('messageReactionAdd', (reaction, user) => {
|
|||||||
reaction.remove(user);
|
reaction.remove(user);
|
||||||
return msg.reply('You cannot star your own messages, idiot');
|
return msg.reply('You cannot star your own messages, idiot');
|
||||||
}
|
}
|
||||||
console.log(msg.id);
|
|
||||||
client.registry.resolveCommand('random:star').run(msg, { id: msg.id }, true);
|
client.registry.resolveCommand('random:star').run(msg, { id: msg.id }, true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ module.exports = class StarCommand extends Command {
|
|||||||
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
|
const channel = msg.guild.channels.get(msg.guild.settings.get('starboard'));
|
||||||
if (!channel || !channel.permissionsFor(this.client.user).has('EMBED_LINKS')) return null;
|
if (!channel || !channel.permissionsFor(this.client.user).has('EMBED_LINKS')) return null;
|
||||||
try {
|
try {
|
||||||
console.log(msg.id);
|
|
||||||
const message = await msg.channel.fetchMessage(id);
|
const message = await msg.channel.fetchMessage(id);
|
||||||
if (!reaction && msg.author.id === message.author.id)
|
if (!reaction && msg.author.id === message.author.id)
|
||||||
return msg.reply('You cannot star your own messages, idiot.');
|
return msg.reply('You cannot star your own messages, idiot.');
|
||||||
|
|||||||
Reference in New Issue
Block a user