/role fails on long role strings #229
Labels
No labels
beginner friendly
bug
chore
documentation
duplicate
feature
help wanted
invalid
needs-triage
question
size/L
size/M
size/S
size/XL
size/XS
urgent
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/dalmatian#229
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to Reproduce
Run
in the CMU 2030 server.
The bot should return the number of users with those specified roles. Instead, the bot gives "There was an error while executing this command!".
Logs showSee the comments belowError executing command:with nothing after the colon (this empty error message is from #230, so it may become clearer what the problem is once that is fixed)A smaller expression, such as
works as intended.
Other test cases
Suspected Issue
The bot is probably timing out on cache lookups. Is this something we can improve?Some ideas:Don't make more than one call to the Discord cache for the same roleMake calls in "batches" to not hit the rate limit, with a deferralIf it's not feasible, we should give a different error message.See the comments below
Originally, I wanted to run this massive command to conduct pairwise comparisons on dorm roles:
Error message after #230 was fixed:

The problem is that the embed title character limit is exceeded. We can call
.slice(0, 254)or similar on the embed title to fix this bug.