Banning someone who is not in your server #6891
-
Hi ! I wanna ban someone who is not in my server using his id. Found this old issue doing basically the same thing.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
SOLVED IT. Here is the code in someone wants it:
|
Beta Was this translation helpful? Give feedback.
member_id
wouldn't be defined here. You could make ot an argument to the command and typehint it to anint
? Also, I don't think thatbot.guild
exists - you probably wantctx.guild
to get the current guild.