[Mod] Dots and properly capitalise Discord (#4377)

This commit is contained in:
Vexed 2020-08-31 14:25:43 +01:00 committed by GitHub
parent 7d24413846
commit 8956f63229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ class KickBanMixin(MixinMeta):
"hierarchy." "hierarchy."
) )
elif guild.me.top_role <= user.top_role or user == guild.owner: elif guild.me.top_role <= user.top_role or user == guild.owner:
return _("I cannot do that due to discord hierarchy rules.") return _("I cannot do that due to Discord hierarchy rules.")
elif not (0 <= days <= 7): elif not (0 <= days <= 7):
return _("Invalid days. Must be between 0 and 7.") return _("Invalid days. Must be between 0 and 7.")
@ -199,7 +199,7 @@ class KickBanMixin(MixinMeta):
) )
return return
elif ctx.guild.me.top_role <= user.top_role or user == ctx.guild.owner: elif ctx.guild.me.top_role <= user.top_role or user == ctx.guild.owner:
await ctx.send(_("I cannot do that due to discord hierarchy rules.")) await ctx.send(_("I cannot do that due to Discord hierarchy rules."))
return return
audit_reason = get_audit_reason(author, reason) audit_reason = get_audit_reason(author, reason)
toggle = await self.config.guild(guild).dm_on_kickban() toggle = await self.config.guild(guild).dm_on_kickban()
@ -282,10 +282,10 @@ class KickBanMixin(MixinMeta):
*, *,
reason: str = None, reason: str = None,
): ):
"""Preemptively bans user(s) from the server """Preemptively bans user(s) from the server.
User IDs need to be provided in order to ban User IDs need to be provided in order to ban
using this command""" using this command."""
banned = [] banned = []
errors = {} errors = {}
upgrades = [] upgrades = []
@ -454,7 +454,7 @@ class KickBanMixin(MixinMeta):
) )
return return
elif guild.me.top_role <= user.top_role or user == guild.owner: elif guild.me.top_role <= user.top_role or user == guild.owner:
await ctx.send(_("I cannot do that due to discord hierarchy rules")) await ctx.send(_("I cannot do that due to Discord hierarchy rules."))
return return
if days is None: if days is None: