def suggest_box(): """Custom commands.guild_only with different error checking.""" def pred(ctx): if ctx.guild is None: raise UnavailableTagCommand() return True return commands.check(pred)