fix useless error
This commit is contained in:
parent
a86466efdb
commit
8bfd16a41f
2
misc.js
2
misc.js
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue