def edir(o): """send embed of an object's attributes, with type notation""" e = Embed(title=utils.getFullname(o)) attrs = [eformat(n, v) for n, v in utils.ddir(o).items()] pageLen = math.ceil(len(attrs) / 3) for page in utils.chunkList(attrs, pageLen): e.add_field(value="\n".join(page)) return e
def __repr__(self): return utils.getFullname(self)