async def reset(self, ctx): if ctx.author.id in Data.get_owners(): self.data = {} self.write_data() await ctx.send("deleted profiles") self.write_data() return
def is_owner(self, arg): # check if a message was sent by the owner if type(arg) == Context: arg = arg.author.id else: raise NotImplementedError() return arg in Data.get_owners()