async def embed_file(self, ctx: NewCtx, message: str, fileout: BytesIO, timediff: float, filename: str): fileout = File(fileout, filename) embed = BetterEmbed(title=message) embed.set_footer(text=f"That took {timediff:.2f}s") embed.set_image(url="attachment://" + filename) await ctx.send(embed=embed, file=fileout)
async def send_command_help(self, command): embed = BetterEmbed(title=self.get_command_signature(command)) description = f'{command.help or "No description provided"}\n\n' embed.description = description if c := retrieve_checks(command): embed.set_footer(text=f'Checks: {c}')