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
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

