Handle UIB interactions for ignoring channels. (#6503)

Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Kowlin
2026-03-04 21:38:30 +01:00
committed by GitHub
parent 45c55418a4
commit afe4e636b7
5 changed files with 37 additions and 6 deletions

View File

@@ -5,4 +5,7 @@ from . import commands
def init_global_checks(bot):
@bot.check_once
async def check_message_is_eligible_as_command(ctx: commands.Context) -> bool:
if ctx.interaction is not None:
# equivalent checks are performed by `RedTree.interaction_check`
return True
return await ctx.bot.message_eligible_as_command(ctx.message)