aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2020-04-23Simplify free tagGravatar Matteo Bertucci-3/+2
2020-04-21Fix category cache issueGravatar Joseph Banks-3/+2
2020-04-20HelpChannels: add logging to answered checkGravatar MarkKoz-3/+4
2020-04-20HelpChannels: rename dormant command to closeGravatar MarkKoz-4/+4
People are more familiar with the "close" alias than its actual name, "dormant". "close" also feels more natural.
2020-04-20Extra documentation + split out to separate functionGravatar Joseph Banks-8/+26
2020-04-20Add different emoji for different channel statuses (in use answered/unanswered)Gravatar Joseph Banks-2/+7
2020-04-20HelpChannels: check if the help cooldown role existsGravatar MarkKoz-10/+12
A NotFound error can be misleading since it may apply to the member or the role. The log message was not simply updated because each of the scenarios need to have different log levels: missing members is a normal thing but an invalid role is not.
2020-04-20HelpChannels: pass coroutine func instead to `_change_cooldown_role`Gravatar MarkKoz-6/+8
This will allow `_change_cooldown_role` to handle the role argument rather than putting that burden on the callers.
2020-04-20HelpChannels: tidy up log messagesGravatar MarkKoz-5/+1
* Remove obsolete log message * Shorten a log message which was the only line in the entire module over 100 characters
2020-04-20Incorrect comparison, we need to check if we are in help_in_use, not out of itGravatar Joseph Banks-1/+1
2020-04-20Add statistics on whether a help session was closed with no input from ↵Gravatar Joseph Banks-0/+15
anyone but the claimant
2020-04-17HelpChannels: handle errors when changing cooldown roleGravatar MarkKoz-12/+35
A user may leave the guild before their role can be changed. Sometimes, there could also be role hierarchy issues or other network issues. It's not productive to halt everything and just dump these as exceptions to the loggers. The error handler provides a more graceful approach to these exceptions. * Add a wrapper function around `add_roles` & `remove_roles` which catches exceptions
2020-04-17HelpChannels: fix role not resetting after dormant commandGravatar MarkKoz-13/+3
Resetting permissions relied on getting the member from the cache, but the member was already removed from the cache prior to resetting the role. Now the member is passed directly rather than relying on the cache.
2020-04-17HelpChannels: mention dormant cmd in available message embedGravatar MarkKoz-2/+3
Users should know they can close their own channels.
2020-04-17HelpChannels: add info about cooldown role & dormant cmd to docstringGravatar MarkKoz-0/+3
2020-04-17HelpChannels: add/remove a cooldown role rather than using overwritesGravatar MarkKoz-13/+10
Overwrites had issues syncing with channels in the category. * Remove update_category_permissions; obsolete * Add constant for the cooldown role wrapped in a discord.Object
2020-04-17HelpChannels: clear roles when resetting permissionsGravatar MarkKoz-9/+7
Claimants will have a special role that needs to be removed rather than using member overwrites for the category.
2020-04-17HelpChannels: add helper function to check for claimant roleGravatar MarkKoz-0/+5
2020-04-17HelpChannels: remove ensure_permissions_synchronizationGravatar MarkKoz-29/+1
2020-04-17Constants: add help channel cooldown roleGravatar MarkKoz-0/+2
2020-04-17HelpChannels: ensure `is_in_category` returns a boolGravatar Mark-1/+1
Co-Authored-By: kwzrd <[email protected]>
2020-04-16Use IDs instead of hard-coding category names in the free tagGravatar Matteo Bertucci-2/+1
Co-Authored-By: Shirayuki Nekomata <[email protected]>
2020-04-16Add a title at the top of the free tagGravatar Matteo Bertucci-0/+2
Co-Authored-By: Shirayuki Nekomata <[email protected]>
2020-04-16Remove `.md` from anti-malware whitelistGravatar Sebastiaan Zeeff-1/+0
We want our members to use the paste site to share text-based files instead of them sharing the files as attachments on Discord. As `.md`, a file extensions used for plain-text files with markdown formatting, is such a text file, I've removed it from the anti-malware whitelist.