From 7f471304614cdf012e45f31af0f8f0e775a4acb5 Mon Sep 17 00:00:00 2001 From: tueem Date: Mon, 2 Dec 2024 21:20:26 +0100 Subject: [PATCH] add missing annotation annotations --- .../marinara/wrapper/javacord/checks/PermissionCheck.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wrapper/javacord/src/main/java/net/tomatentum/marinara/wrapper/javacord/checks/PermissionCheck.java b/wrapper/javacord/src/main/java/net/tomatentum/marinara/wrapper/javacord/checks/PermissionCheck.java index 8996ce4..0355541 100644 --- a/wrapper/javacord/src/main/java/net/tomatentum/marinara/wrapper/javacord/checks/PermissionCheck.java +++ b/wrapper/javacord/src/main/java/net/tomatentum/marinara/wrapper/javacord/checks/PermissionCheck.java @@ -1,5 +1,9 @@ package net.tomatentum.marinara.wrapper.javacord.checks; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; import java.util.Optional; import org.javacord.api.entity.permission.PermissionType; @@ -10,6 +14,8 @@ import net.tomatentum.marinara.checks.InteractionCheck; public class PermissionCheck implements InteractionCheck { + @Retention(RetentionPolicy.RUNTIME) + @Target(ElementType.METHOD) public static @interface HasPermission { public PermissionType[] value(); }