| Commit message (Collapse) | Author | Age | Lines | 
| ...                  |  | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | |  | 
Replace `{"foo": "bar"}` with `{"id": 1}`
 | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | |  | 
To allow `.get`, I had to replace `str` return value with `dict`
 | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | |  | 
 | 
| | | | | | | | | | |  | 
 | 
| | | |\ \ \ \ \ \ \ \   | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
- Remove unnecessary space from placeholder
- Rename `has_active_infraction` to `get_active_infraction`
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
Co-authored-by: Leon Sandøy <[email protected]>
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
removed unnecessary type hint and added comment to kick truncation test about awaiting `kick`.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
fail. Also don't send DM in this case.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
`apply_infraction`.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
to avoid removing newlines.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
`end_msg`.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
reordered ModLog text.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
whole embed in `notify_infraction`.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
order of ModLog embed description item in same function.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
to 1500, added shortening to end message too.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
creating.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
truncated for Audit Log.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
shorten already include `placeholder` to length.
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | |  | 
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
Audit Log when kick reason length is more than 512 characters.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
Log when ban reason length is more than 512 characters.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
This de-clutters the main `server_info` function and improves its
readability.
 | 
| | | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | | 
| | | | | | | | | | |  | 
Simplification comes from being able to access permissions as attributes
on the overwrite object. This removes the need to iterate all
permissions.
Efficiency comes from checking all roles within a single iteration of
all channels. This also removes the need to flatten and filter the
channels afterwards, which required additional iterations.
 | 
| | | | | | | | |\ \ \ \  
| |_|_|_|_|_|_|/ / / /  
|/| | | | | | | | | |    | 
 | 
| |\ \ \ \ \ \ \ \ \ \ \  
| |_|_|_|_|/ / / / / /  
|/| | | | | | | | | |    | 
Specify encoding when reading tag files
 | 
| |/ / / / / / / / / /  
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |   
| | | | | | | | | |    | 
Not all operating systems use UTF-8 as the default encoding. For systems
that don't, reading tag files with Unicode would cause an unhandled
exception.
(cherry picked from commit adc75ff9bbcf8b905bd78c78f253522ae5e42fc3)
 | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | |  | 
We're using the set comprehension to prevent duplicates anyway, so
flipping these back makes more sense.
Also added a missing ctx and tested ok.
 | 
| | | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | | 
| | | | | | | | | |  | 
- We're using a set comprehension and flipping the order for counting
  the number of channels that are both staff allow and @everyone deny.
- We're breaking the staff channel count stuff into a separate helper
  function so it doesn't crowd the server_info() scope.
These fixes are both to address the code review from @MarkKoz, thanks
Mark.
 |