F
F
F1azy2022-02-09 16:15:38
Python
F1azy, 2022-02-09 16:15:38

Is it possible to make the issuance of a role for the duration of Discord.py?

For example !roleadd @F1azy(member nickname) @admin(role) 30h(time for which the role will be issued)
If this can be done, please write the code.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2022-02-09
@F1azy

Can.
Храни в БД id роли, id учатсника и время, когда нужно будет снять роль. Раз в минуту ищи записи, для которых назначенное время меньше текущего времени, снимай роли с этих юзеров и удаляй записи.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question