DiSkyOrg / DiSky

The best Skript add-on for Discord management! Slash commands, interaction, components, modal and much more available!
https://disky.me/
Apache License 2.0
42 stars 12 forks source link

reset permissions #197

Closed Hurming closed 3 months ago

Hurming commented 3 months ago

This thing already exists, but I want you to change Expressions from remove all to reset, for example change it from remove all (your permissions) from permissions of event-member in event-channel to reset (your permissions) from permissions of event-member in event-channel and add the Expressions in https://disky.me/docs/docs/expressions/?h=permission

and add new thing doing remove member or role from permission list in channel like clear member/role from permissions of event-channel image_2024-05-09_160001454

Hurming commented 3 months ago

or anything to let people understand cuz my English not good to explane

ItsTheSky commented 3 months ago

The reset mode does not exist in Skript, as the expression is directly used by Skript's changer. It would require creating a whole new change effect with just one new pattern.

Fusezion commented 3 months ago

The reset mode does not exist in Skript, as the expression is directly used by Skript's changer. It would require creating a whole new change effect with just one new pattern.

Sorry a little confused here, RESET does indeed exist https://github.com/SkriptLang/Skript/blob/master/src/main/java/ch/njol/skript/classes/Changer.java#L39-L41