Exemplo n.º 1
0
 async def cog_check(self, inter):
     if inter.guild is None:
         raise commands.NoPrivateMessage()
     if not self.is_enabled(inter.guild):
         raise DisabledCog()
     channel = self.art_channel.get(inter.guild.id)
     if channel and inter.channel.id != channel:
         raise NoArtChannel(
             "This command can only be used in the art channel!")
     return True
Exemplo n.º 2
0
 async def cog_check(self, ctx):
     if ctx.guild is None:
         raise commands.NoPrivateMessage()
     if not self.is_enabled(ctx):
         raise DisabledCog()
     return True