H
H
Hacker29612021-06-19 10:15:45
Python
Hacker2961, 2021-06-19 10:15:45

How to make hs users unable to use discord py command?

I have one person who spams with bot commands and the bot freezes / slows down as a result of this. I would like to make the bot reject his commands, and write to him: "You were brought to the Bot's emergency. Commands are not available for you." I understand that this is easy to get around, but still, how is it implemented?

PS I have his id, nickname and tag

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Shevkunov, 2021-06-19
@Hacker2961

I don’t know exactly how it works in Discord, but in a telegram, for example, you can check the user id from which the message came through if id in black_list and respond to all users from the emergency with something of your own

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question