Nat1anWasTaken / Lava

Function with cyclomatic complexity higher than threshold PY-R1000
Anti-pattern
Minor
1 occurrence in this check
Events.on_message_interaction has a cyclomatic complexity of 19 with "high" risk
195                    pass
196
197    @commands.Cog.listener(name="on_message_interaction")
198    async def on_message_interaction(self, interaction: MessageInteraction):199        if interaction.data.custom_id.startswith("control"):
200            if interaction.data.custom_id.startswith("control.empty"):
201                await interaction.response.edit_message()