| Commit message (Collapse) | Author | Lines |
|
If you run, for example:
!doc setdoc black https://black.readthedocs/en/stable/objects.inv
twice over. You'll get an unhelpful "According to the API, your request
is malformed." error message back. This commit adds an error handler
to catch the HTTP 400 and tell the user the package already exists.
|
|
Co-authored-by: Bluenix <[email protected]>
|
|
|
|
This will need a coordinated rollout with @jb3, in order to make the
appropriate changes in Kubernetes beforehand.
|
|
This allows us to run moderation commands in the appeal categories
|
|
|
|
|
|
Reverted accidental line deletion
|
|
Adds `messages_as_list` for easy indexing of `self.messages.values()`
Also updated the comment above if statement and tidied some code
|
|
Co-authored-by: Matteo Bertucci <[email protected]>
|
|
- Removed redundant f-string
- Made it so that messages with attachments will *always* upload to the log site.
- Made it so that truncates messages will also upload to the paste site, for full viewing.
- Fixed a previously unnoticed bug where truncating didn't account for extra characters of the ellipses.
|
|
|
|
|
|
Sometimes discord turns off typing events by throwing 403's, so we should catch those
|
|
By swapping the isinstance to check for int, the else block now catches the case where target is Member or User, this allows for editting the nomination reason of members that are off server.
|
|
#nominations
|
|
The code already handled the attribute not existing (e.g from a DM channel), but didn't handle TextChannels not in a category
|
|
Co-authored-by: Bluenix <[email protected]>
|
|
This change will allow helpers to run the edit reason command in the Talentpool cog.
To ensure that non-mod helpers can only edit their own reasons the interface for the reason command has been changed slightly.
If nominee_or_nomination_id is a member or user, then the command edits the currently active nomination for that person.
If it's an int, then use this to look up that nomination ID to edit.
If no nominator is specified, assume the invoker is editing their own nomination reason.
Otherwise, edit the reason from that specific nominator.
Raise a permission error if a non-mod staff member invokes this command on a
specific nomination ID, or with an nominator other than themselves.
|
|
* Fix escapes in python-news posts
No longer escapes markdown inside of codeblocks or pre-escaped markdown.
Co-authored-by: Ryu18 <[email protected]>
* Add escaping to title of py-news posts
* Fix typo
Co-authored-by: Ryu18 <[email protected]>
|
|
Updated the test task to now run with --ff which runs failed tests from the last run first
Added retest, which runs pytest with --lf this only runs the failed tests from the last test run
|
|
|
|
|
|
This protects us against the guild cache not being fully populated with members.
|