Fix visual issues with Discord's new Markdown (#6101)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Vexed 2023-05-13 11:39:57 +01:00 committed by GitHub
parent 7f820dab0c
commit 2386b8363f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 433 additions and 432 deletions

View File

@ -890,8 +890,8 @@ class KickBanMixin(MixinMeta):
Requires specifying the target user's ID. To find this, you may either:
1. Copy it from the mod log case (if one was created), or
2. enable developer mode, go to Bans in this server's settings, right-
click the user and select 'Copy ID'."""
2. Enable Developer Mode, go to Bans in this server's settings, right-click the user and select 'Copy ID'.
"""
guild = ctx.guild
author = ctx.author
audit_reason = get_audit_reason(ctx.author, reason, shorten=True)

View File

@ -220,12 +220,12 @@ class Permissions(commands.Cog):
"checking for the default restrictions of the command.\n"
"Global rules (set by the owner) are checked first, then rules set for servers. If "
"multiple global or server rules apply to the case, the order they are checked in is:\n"
" 1. Rules about a user.\n"
" 2. Rules about the voice/stage channel a user is connected to.\n"
" 3. Rules about the channel or a parent of the thread a command was issued in.\n"
" 4. Rules about a role the user has (The highest role they have with a rule will be "
"1. Rules about a user.\n"
"2. Rules about the voice/stage channel a user is connected to.\n"
"3. Rules about the channel or a parent of the thread a command was issued in.\n"
"4. Rules about a role the user has (The highest role they have with a rule will be "
"used).\n"
" 5. Rules about the server a user is in (Global rules only).\n\n"
"5. Rules about the server a user is in (Global rules only).\n\n"
"For more details, please read the [official documentation]"
"(https://docs.discord.red/en/stable/cog_permissions.html)."
)

View File

@ -1117,6 +1117,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
The default is to use embeds.
The embed settings are checked until the first True/False in this order:
- In guild context:
1. Channel override - `[p]embedset channel`
2. Server command override - `[p]embedset command server`