Closed LakeYS closed 3 years ago
Admin command check appears to stop functioning until the corresponding shard is reset. Users have reported the trivia stop command failing to recognize them as an admin.
trivia stop
This has been narrowed to some failing of the checks, msg.member !== null or msg.member.permissions.has("MANAGE_GUILD")) https://github.com/LakeYS/Discord-Trivia-Bot/blob/master/triviabot.js#L1223
msg.member !== null
msg.member.permissions.has("MANAGE_GUILD"))
First step would probably be to refactor this bit of code so it is more manageable--then investigate the permissions calls individually.
Will update if there are further reports, but as-is, this appears to be a relatively rare issue.
No-longer able to reproduce after several months.
Admin command check appears to stop functioning until the corresponding shard is reset. Users have reported the
trivia stop
command failing to recognize them as an admin.This has been narrowed to some failing of the checks,
msg.member !== null
ormsg.member.permissions.has("MANAGE_GUILD"))
https://github.com/LakeYS/Discord-Trivia-Bot/blob/master/triviabot.js#L1223First step would probably be to refactor this bit of code so it is more manageable--then investigate the permissions calls individually.
Will update if there are further reports, but as-is, this appears to be a relatively rare issue.