fix useless error

This commit is contained in:
Lamp 2023-10-10 17:58:11 -05:00
parent a86466efdb
commit 8bfd16a41f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ dClient.on("emojiDelete", async emoji => {
// allow anyone to pin a message via reaction // allow anyone to pin a message via reaction
// todo need enable partials for it to work on old messages // todo need enable partials for it to work on old messages
dClient.on("messageReactionAdd", async (messageReaction) => { dClient.on("messageReactionAdd", async (messageReaction) => {
if (messageReaction.guild.id != config.guildID) return; if (messageReaction.guild?.id != config.guildID) return;
if (messageReaction.emoji.name == "📌" || messageReaction.emoji.name == "📍") if (messageReaction.emoji.name == "📌" || messageReaction.emoji.name == "📍")
await messageReaction.message.pin(); await messageReaction.message.pin();
}); });