async def edit_alternate(self, ctx, lov, *, newrule): """ Oppdaterer reaksjons-regler i lovherket. """ rules = RuleManager(ctx.guild.id, self.SERVERS_PATH) edited = rules.edit_rule(lov, newrule, alternate=True) if edited: await ctx.send("Alternative regler oppdatert") else: await ctx.send("Sjekk at du skrev riktig.")
async def updaterules(self, ctx, lov, *, newrule): """ Oppdaterer lover i lovherket. """ rules = RuleManager(ctx.guild.id, self.SERVERS_PATH) edited = rules.edit_rule(lov, newrule) if edited: await ctx.send("Oppdaterer meldinger") await self._update_messages(ctx, lov) await ctx.send("Regler oppdatert") else: await ctx.send("Sjekk at du skrev riktig.")