Compare commits

..

No commits in common. "c85c6df78497d685ef1d3a872a0a69ab4e4ecd29" and "f89b4c4ef511fe98f9edefe6789a9ea393f6db63" have entirely different histories.

View File

@ -220,7 +220,7 @@ class AutoRoleGroup(DiscordCommandABC):
) -> TList[app_commands.Choice[str]]:
return await self._auto_role_auto_complete(interaction, current)
@auto_role.command()
@auto_role.command("react")
@commands.guild_only()
@CommandChecks.check_is_ready()
@CommandChecks.check_is_member_moderator()
@ -244,9 +244,11 @@ class AutoRoleGroup(DiscordCommandABC):
return
for rule in self._auto_roles.get_auto_role_rules_by_auto_role_id(auto_role_from_db.id):
self._bot.loop.create_task(
await self._client_utils.react_to_message_by_auto_role_rule(
auto_role_from_db.discord_channel_id, auto_role_from_db.discord_message_id, rule, ctx.guild
)
)
await self._message_service.send_ctx_msg(
ctx,
@ -254,7 +256,7 @@ class AutoRoleGroup(DiscordCommandABC):
)
self._logger.trace(__name__, f"Finished command auto-role react")
@react.autocomplete("auto_role")
@remove.autocomplete("auto_role")
async def react_autocomplete(
self, interaction: discord.Interaction, current: str
) -> TList[app_commands.Choice[str]]: