Skip to content

Commit

Permalink
Update booster.py
Browse files Browse the repository at this point in the history
Fixed bug with mismatched args.
  • Loading branch information
LewisHobden authored Jan 30, 2023
1 parent b8276bf commit b7c5b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/booster.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ async def _import_booster_roles(self, ctx: SlashContext, user: Member = None):
options=[dict(name="enabled", description="Are booster roles enabled in this server?",
type=SlashCommandOptionType.BOOLEAN, enabled=True)])
@commands.has_permissions(manage_guild=True)
async def _toggle_booster_roles(self, ctx: SlashContext, is_active: bool):
async def _toggle_booster_roles(self, ctx: SlashContext, enabled: bool):
config = BoosterRoleConfig.get_for_guild(ctx.guild)
config.is_active = is_active
config.is_active = enabled
config.save()

return await ctx.send(embed=BoosterRoleConfigEmbed(config, ctx.guild.get_role(config.anchor_role_id),
Expand Down

0 comments on commit b7c5b64

Please sign in to comment.