mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Support all Messageables in bot.embed_requested() (#5576)
* Support all Messageables in bot.embed_requested * Update usage in core * Simplify [p]contact This couldn't be done before this change. I have also simplified getting embed color. * Make `True` the new default for `check_permissions` kwarg
This commit is contained in:
@@ -375,7 +375,7 @@ class Case:
|
||||
if not self.message:
|
||||
return
|
||||
try:
|
||||
use_embed = await self.bot.embed_requested(self.message.channel, self.guild.me)
|
||||
use_embed = await self.bot.embed_requested(self.message.channel)
|
||||
case_content = await self.message_content(use_embed)
|
||||
if use_embed:
|
||||
await self.message.edit(embed=case_content)
|
||||
@@ -993,7 +993,7 @@ async def create_case(
|
||||
bot.dispatch("modlog_case_create", case)
|
||||
try:
|
||||
mod_channel = await get_modlog_channel(case.guild)
|
||||
use_embeds = await case.bot.embed_requested(mod_channel, case.guild.me)
|
||||
use_embeds = await case.bot.embed_requested(mod_channel)
|
||||
case_content = await case.message_content(use_embeds)
|
||||
if use_embeds:
|
||||
msg = await mod_channel.send(embed=case_content)
|
||||
|
||||
Reference in New Issue
Block a user