Minor bugfixes
This commit is contained in:
parent
a3e70cedde
commit
c34403e4a9
2 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,10 @@ class BotutilCog(Extension):
|
||||||
"""Checks if author is bot owner."""
|
"""Checks if author is bot owner."""
|
||||||
return ctx.author.id == self.bot.owner.id
|
return ctx.author.id == self.bot.owner.id
|
||||||
|
|
||||||
|
@prefixed_command(name="echo")
|
||||||
|
async def _echo(self, ctx: PrefixedContext, content: str) -> None:
|
||||||
|
await ctx.send(content)
|
||||||
|
|
||||||
@prefixed_command(name="stop")
|
@prefixed_command(name="stop")
|
||||||
async def _stop(self, ctx: PrefixedContext) -> None:
|
async def _stop(self, ctx: PrefixedContext) -> None:
|
||||||
await ctx.send("Shutting down now")
|
await ctx.send("Shutting down now")
|
||||||
|
|
|
@ -39,6 +39,7 @@ def ban_embed(
|
||||||
if dm:
|
if dm:
|
||||||
embed = build_embed(
|
embed = build_embed(
|
||||||
title=f"You have been banned from {guild.name}",
|
title=f"You have been banned from {guild.name}",
|
||||||
|
description=None,
|
||||||
fields=fields,
|
fields=fields,
|
||||||
color=get_command_color("ban"),
|
color=get_command_color("ban"),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue