mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-18 18:34:40 +12:00
return cost of 0 if using in dms, fix mascot command
This commit is contained in:
parent
4ad6d16f29
commit
495562a0ec
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue