-
-
Notifications
You must be signed in to change notification settings - Fork 964
Best way to implement a "superadmin" handling? #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As it is implemented now with the User and Admin commands, it's not possible to have a Superadmin one. What you could do though, if have an Admin command that first checks to see if the user is a Superadmin. Another possibility, as you suggested yourself, would be to adapt the code and duplicate everything that exists for Admin and call it Superadmin. That will work, but will need a lot of code modifications. Regarding your worry of failing, if you don't try you've already failed! |
I've implemented your first mentioned idea. It was easy to implement and is sufficient for my needs. Thanks for your answer! 👍 |
Ok 👍 @MBoretto @jacklul @akalongman |
In my bot project I search for a way to tread users ("superadmins") differently. The "superadmins" should coexist with the admins. They should be able to see / use some more commands than default users / admins can see (like this already implemented in the admin feature).
What is the most efficient way to implement this?
Should I make a copy of all related enableAdmins classes? Because I'm very new to php I
worry that I will fail.
Can someone give me some advices.
I would be very grateful! Thank you.
The text was updated successfully, but these errors were encountered: