-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
application_checks error #1163
Labels
t: unconfirmed bug
Type: bug - needs testing on if this is an issue
Comments
eeemoon
added
the
t: unconfirmed bug
Type: bug - needs testing on if this is an issue
label
Feb 6, 2024
Same happens with
import nextcord
from nextcord.ext import commands
client = commands.Bot("test!", intents=nextcord.Intents.all())
@client.command()
@commands.check_any(commands.has_guild_permissions(manage_guild=True))
async def ping(ctx: commands.Context):
return await ctx.send("Pong!")
client.run("TOKEN")
|
This is not the same @A1Asriel, that is |
I understand, but even if it's in another module, it still produces the same error and is triggered by the same conditions. I can open another issue, if needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
application_checks.check_any() raises a TypeError
Reproduction Steps
Wrap a slash command in
application_checks.check_any()
decorator withhas_permissions()
orhas_guild_permissions()
checks.Minimal Reproducible Code
Expected Results
The slash command registers without any errors.
Actual Results
Intents
nextcord.Intents.all()
System Information
Checklist
Additional Context
The problem seems to occur only with these checks:
has_permissions
has_guild_permissions
bot_has_permissions
bot_has_guild_permissions
This decorator works fine:
The text was updated successfully, but these errors were encountered: