Skip to content
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

Commands depending on the role #80

Open
A57RO opened this issue Sep 19, 2024 · 2 comments
Open

Commands depending on the role #80

A57RO opened this issue Sep 19, 2024 · 2 comments

Comments

@A57RO
Copy link

A57RO commented Sep 19, 2024

when I want to make commands so that only moderators can use them in the role value instead of the numbers assigned in the documentation of 0 = Viewer, 1 = VIP, 2 = Mods, 3 = Broadcaster I have to use 3 for moderators and 4 for the broadcaster and I tried with numbers with other numbers for only viewers but none worked, I attach images of how I did it in case I am making a mistake and I apologize if what I write is not understood at all well, I am Spanish speaking and I'm using a translator.

command

@TheGeekno72
Copy link

TheGeekno72 commented Sep 19, 2024

@A57RO you have the "isSubscriber" and "isModerator" booleans you can use to make the check

image

I use a similar method for my filters to ignore messages from bot accounts and mods
try "if isMod equals True, do action then break, else do nothing then continue" and repeat that for all the user categories you wanna support or replace the isModerator by isSubscriber as desired

(don't copy the screenshot because it does the exact opposite of what you want)

@A57RO
Copy link
Author

A57RO commented Sep 19, 2024

It worked perfectly, what if it is that in my kick channel I gave myself moderator to be able to use the commands that are only moderator, is a little strange solution but worked perfect, thank you very much for answering the post 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants