You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 21, 2018. It is now read-only.
if(req.body.roleID!=='506943223680466955'&&req.body.roleID!=='472524444083159050'&&req.body.roleID!=='511771731891847168'&&req.body.roleID!=='519420786721947649'&&req.body.roleID!=='480017323546247198')returnres.status(403).send('This role cannot have it\'s color changed.');
468
+
if(req.body.roleID!=='506943223680466955'&&req.body.roleID!=='472524444083159050'&&req.body.roleID!=='511771731891847168'&&req.body.roleID!=='519420786721947649'&&req.body.roleID!=='480017323546247198'&&req.body.roleID!=='452182150159138837')returnres.status(403).send('This role cannot have it\'s color changed.');
469
469
if(!client.guilds.get('446067825673633794').members.get(req.body.userID).roles.get(req.body.roleID))returnres.status(401).send('Cannot edited color of specified role because you do not have it.');
470
470
try{
471
471
client.guilds.get('446067825673633794').roles.get(req.body.roleID).setColor(req.body.roleColor,'Request done via Interactive API');
0 commit comments