mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Mod] Add default bot color to kick & ban DM (#4822)
This commit is contained in:
parent
d64944d5c3
commit
acec5c6efe
@ -153,7 +153,8 @@ class KickBanMixin(MixinMeta):
|
||||
if toggle:
|
||||
with contextlib.suppress(discord.HTTPException):
|
||||
em = discord.Embed(
|
||||
title=bold(_("You have been banned from {guild}.").format(guild=guild))
|
||||
title=bold(_("You have been banned from {guild}.").format(guild=guild)),
|
||||
color=await self.bot.get_embed_color(user),
|
||||
)
|
||||
em.add_field(
|
||||
name=_("**Reason**"),
|
||||
@ -309,7 +310,8 @@ class KickBanMixin(MixinMeta):
|
||||
if toggle:
|
||||
with contextlib.suppress(discord.HTTPException):
|
||||
em = discord.Embed(
|
||||
title=bold(_("You have been kicked from {guild}.").format(guild=guild))
|
||||
title=bold(_("You have been kicked from {guild}.").format(guild=guild)),
|
||||
color=await self.bot.get_embed_color(user),
|
||||
)
|
||||
em.add_field(
|
||||
name=_("**Reason**"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user