Androz2091 / discord-giveaways

🎉 Complete framework to facilitate the creation of giveaways using discord.js
https://discord-giveaways.js.org
MIT License
334 stars 127 forks source link

Giveaway Bot removing reactions #256

Closed mkgamingx closed 3 years ago

mkgamingx commented 3 years ago

It removes reactions after it starts but then after some time they work as normal. Eg after 1 minute they work

Dragonizedpizza commented 3 years ago

are you using custom reaction emoji

mkgamingx commented 3 years ago

are you using custom reaction emoji

yes

mkgamingx commented 3 years ago

but this problem only happened now, for like 3-4 months its been good

mkgamingx commented 3 years ago

i didnt touch code

Dragonizedpizza commented 3 years ago

could you show your giveawayManager initialization, with custom emoji?

Nico105 commented 3 years ago

he does it right, it's just the same problem as #230

Dragonizedpizza commented 3 years ago

ok

Dragonizedpizza commented 3 years ago

it could happen though, I don't think they're removing reactions in the giveawayReactionAdded part.

my bot automatically removed giveaway reactions if I put the entire custom reaction, like <:foo:12345>

Nico105 commented 3 years ago

most who did that just got "no valid participation" on giveaway end, but no auto removing of reactions 🤷‍♂️ and for the protocol

client.giveawaysManager = new GiveawaysManager(client, {
    storage: "./giveaways.json",
    updateCountdownEvery: 5000,
    default: {
        botsCanWin: false,
        embedColor: "#fdcbcd",
        embedColorEnd: "#ff999d",
        reaction: "800350154853974016",
    }
});

this is mkgamingx config

mkgamingx commented 3 years ago

i think its a problem with discord cuz i used another bot and another npm and both have the same problem 🤷‍♂️

Nico105 commented 3 years ago

@mkgamingx are you using WOKCommands ?

mkgamingx commented 3 years ago

@mkgamingx are you using WOKCommands ?

ye

Frostysy commented 3 years ago

If you use wok commands you need to remove it from index.js

Nico105 commented 3 years ago

it seems whyever, that WOKCommands is removing the reactions, idk why. I tried to look in their source code but it doesn't openly appear to me where it happens. So I can only ask you to not use WOKCommands if you want to use discord-giveaways. I will maybe somewhen try to figure out where in the code of WOKCommands it happens but I can't do anything else.

https://github.com/AlexzanderFlores/WOKCommands/issues/49 this maybe is related

Nico105 commented 3 years ago

@mkgamingx are you using 1.3.5 of wokcommands? if not could you try to use that version cause I searched and maybe they fixed it there,

mkgamingx commented 3 years ago

@mkgamingx are you using 1.3.5 of wokcommands? if not could you try to use that version cause I searched and maybe they fixed it there,

ok thanks

Nico105 commented 3 years ago

pls report back if it got fixed

mkgamingx commented 3 years ago

ye it did

Nico105 commented 3 years ago

alright, thank you