return cost of 0 if using in dms, fix mascot command

This commit is contained in:
brandons209 2020-02-09 07:51:38 -05:00
parent 4ad6d16f29
commit 495562a0ec
2 changed files with 3 additions and 1 deletions

View file

@ -61,6 +61,8 @@ class CostManager(commands.Cog):
"""
Get cost of a command, respecting hierarchy
"""
if isinstance(ctx.channel, discord.DMChannel):
return 0
guild = ctx.guild
if not member:
member = ctx.author

View file

@ -36,7 +36,7 @@ class Pony(commands.Cog):
"""
Gives a random picture of our mascot!
"""
await fetch_image(self, ctx, randomize=True, mascot=True, tags=["safe,", "coe"])
await self.fetch_image(self, ctx, randomize=True, mascot=True, tags=["safe,", "coe"])
@commands.group()
@commands.guild_only()