diff --git a/src/main/java/info/itsthesky/disky/elements/properties/PermissionsOf.java b/src/main/java/info/itsthesky/disky/elements/properties/PermissionsOf.java index e9b32992..0cea7a68 100644 --- a/src/main/java/info/itsthesky/disky/elements/properties/PermissionsOf.java +++ b/src/main/java/info/itsthesky/disky/elements/properties/PermissionsOf.java @@ -38,12 +38,12 @@ public class PermissionsOf extends SimpleExpression { private Expression exprHolder; - private Expression exprChannel; + private Expression exprChannel; @Override public boolean init(Expression @NotNull [] exprs, int matchedPattern, @NotNull Kleenean isDelayed, SkriptParser.@NotNull ParseResult parseResult) { exprHolder = (Expression) exprs[0]; - exprChannel = (Expression) exprs[1]; + exprChannel = (Expression) exprs[1]; return true; } @@ -57,7 +57,7 @@ public void change(@NotNull Event e, Object @NotNull [] delta, Changer.@NotNull if (!EasyElement.isValid(delta)) return; final IPermissionHolder holder = EasyElement.parseSingle(exprHolder, e, null); - final @Nullable MessageChannel channel = EasyElement.parseSingle(exprChannel, e, null); + final @Nullable GuildChannel channel = EasyElement.parseSingle(exprChannel, e, null); final Permission[] perms = (Permission[]) delta; if (EasyElement.anyNull(holder, perms)) return; @@ -82,7 +82,7 @@ public void change(@NotNull Event e, Object @NotNull [] delta, Changer.@NotNull @Override protected Permission @NotNull [] get(@NotNull Event e) { final IPermissionHolder holder = EasyElement.parseSingle(exprHolder, e, null); - final @Nullable MessageChannel channel = EasyElement.parseSingle(exprChannel, e, null); + final @Nullable GuildChannel channel = EasyElement.parseSingle(exprChannel, e, null); if (EasyElement.anyNull(holder)) return new Permission[0]; if (channel != null && !(channel instanceof GuildChannel))