def censor_object(self, obj):
    if ((not isinstance(obj, str)) and (obj.id in self.bot.blacklist)):
        return '[censored]'
    return censor_invite(obj)
def censor_object(self, obj):
    if ((not isinstance(obj, str)) and (obj.id in self.bot.blacklist)):
        return '[censored]'
    return censor_invite(obj)