Returning bot's missing permissions

Hey, i made a function, which is supposed to check for the missing permissionsn in the array of permissions i give it. Instead, it either returns all permissions, or no permissions at all.

Code for function: https://srcb.in/8ylqAtQbhb
How i utilize the function: https://srcb.in/Jlacln3RD9
Permissions for the channel i'm checking in (Thread channel): pic attached
How the bot responds: pic attached
image.png
image.png
SourceBin
Instantly share your code with the world.
SourceBin
Instantly share your code with the world.
Was this page helpful?