I'm trying to create a ban command for my bot that primarily works via the user's ID number, but I keep getting an error when I try testing it.
The code I am using is here: https://pastebin.com/p5BPttKn
The error I get is: TypeError: userid.ban is not a function
Is it even possible to do this, or have I missed something (blatantly obvious, given my track record).
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.