Skip to content

Commit

Permalink
Merge pull request #68 from Ayrox/dev
Browse files Browse the repository at this point in the history
somes fixes
  • Loading branch information
Ayrox authored Jan 17, 2022
2 parents 076ed02 + a0d2b71 commit 74e3f0d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/Commands/Fun/meme.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ module.exports = {
else {
messageMeme = await message.channel.send({ embeds: [embedReponse], fetchReply: true})
}

await messageMeme.react(message.guild.emojis.cache.find(emoji => emoji.name === "upvote"))
await messageMeme.react(message.guild.emojis.cache.find(emoji => emoji.name === "downvote"))

try {
await messageMeme.react(message.guild.emojis.cache.find(emoji => emoji.name === "upvote"))
await messageMeme.react(message.guild.emojis.cache.find(emoji => emoji.name === "downvote"))
} catch (e) {
console.log("Le serveur n'a pas les émojis !")
}
}

},
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Information/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {

await message.editReply({embeds : [{description : "⏳ Chargement", color:0xFF6800}]})
.then(async (resultMessage) => {
resultMessage.edit({ embeds: [logoembed], files: [logoImg] })
resultMessage.edit({ embeds: [logoembed]})
});

}
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/Moderation/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = {
.addField("Date : ", `<t:${parseInt(message.createdAt / 1000)}:R>`, true)
.addField("Raison : ", `${rreason}`);

let reportschannel = (!config(message.guild.id).channel.reportID) ? null : message.guild.channels.cache.get(config(message.guild.id).channel.reportID);
let reportschannel = (!config.channel.reportID) ? null : message.guild.channels.cache.get(config.channel.reportID);

console.log(config.channel.reportID);
console.log(reportschannel);
Expand Down

0 comments on commit 74e3f0d

Please sign in to comment.