async def off(self, ctx, channel: discord.TextChannel = None): if channel is None: channel = ctx.channel ch = str(channel.id) try: a = DataManager.read('data/votereact.json')['channels'] except KeyError: DataManager.write('data/votereact.json', 'channels', []) await Formatter.error(ctx, 'Votereact was never enabled!') if channel.id in a: DataManager.list_remove('data/votereact.json', 'channels', channel.id) try: DataManager.list_update('data/votereact.json', ch, []) except KeyError: pass await ctx.send("✅ | Disabled vote reacting!") else: await Formatter.error(ctx, "Votereact wasn't ever enabled.")
async def unblock(self, ctx, member: discord.Member): DataManager.list_remove('data/ignorelist.json', 'ignore', member.id) await Formatter.success(ctx, f'Successfully unblocked {member.name}')