Closed minomizuha closed 3 years ago
^^ this seems to happen in list comps but not normal for loops
after a bit more, it seems to happen at the very end of a member permissions object
oh actually, @sikkokuhyouma i believe this was fixed in a 2 day old pr, could you update?
reopen if still issue
I'm sorry, but apparently it was working in Discord.py, but after using this nextcord, it stopped working. I'm sorry for the delay. I'm sorry for the delay. I've been struggling with it since then, but I couldn't fix it.
Summary
Please help, I get a TypeError and can't use it.
Reproduction Steps
I'm getting an error in these two sentences, but this is the first time I'm reporting it, so I don't know what to do, sorry!
Minimal Reproducible Code
Expected Results
It should show you all the permissions you have.
Actual Results
Ignoring exception in command ui: Traceback (most recent call last): File "C:\paison\lib\site-packages\nextcord\ext\commands\core.py", line 168, in wrapped ret = await coro(*args, **kwargs) File "C:\Users\wa\Desktop\rouxen\rowen.py", line 1265, in ui syu = [n for n, v in member.guild_permissions if v is True] File "C:\Users\wa\Desktop\rouxen\rowen.py", line 1265, in
syu = [n for n, v in member.guild_permissions if v is True]
File "C:\paison\lib\site-packages\nextcord\flags.py", line 134, in iter
yield (name, self._has_flag(value.flag))
File "C:\paison\lib\site-packages\nextcord\flags.py", line 137, in _has_flag
return (self.value & o) == o
TypeError: unsupported operand type(s) for &: 'int' and 'NoneType'
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "C:\paison\lib\site-packages\nextcord\ext\commands\bot.py", line 995, in invoke await ctx.command.invoke(ctx) File "C:\paison\lib\site-packages\nextcord\ext\commands\core.py", line 895, in invoke await injected(*ctx.args, **ctx.kwargs) File "C:\paison\lib\site-packages\nextcord\ext\commands\core.py", line 177, in wrapped raise CommandInvokeError(exc) from exc nextcord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: unsupported operand type(s) for &: 'int' and 'NoneType'
Intents
PRESENCE INTENT,SERVER MEMBERS INTENT
System Information
python -m nextcord -v
is better because it seems to throw an error.Checklist
Additional Context
No response