Hi there !
First of all, I’m just a newbie here on Glitch so please don’t judge if ever I missed an obvious fix
Let’s talk about my problem now ^^ I made a bot assigning/removing roles on specific message reaction and it is working well whenever I run it on my computer, but while trying to having it run on Glitch I’m being served with
TypeError: serverDamnedWolves.roles.get is not a function in this code (where
roleID is passed as parameter in the function containing the following line):
const role = serverDamnedWolves.roles.get(roleID);.
For information, serverDamnedWolves is defined like this:
const serverDamnedWolves = client.guilds.resolve(client.DamnedWolvesServerID);
I’ve been looking for answers on the support before posting, actually I took a look at Discord bot role functions do not work but unfortunately there is no solution in here.
Any help would be highly appreciated, thanks a lot !