Skip to content

Commit

Permalink
Add RoleFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Sep 3, 2023
1 parent 84aa40f commit 82792e2
Show file tree
Hide file tree
Showing 10 changed files with 434 additions and 25 deletions.
76 changes: 71 additions & 5 deletions common/api/common.api
Original file line number Diff line number Diff line change
Expand Up @@ -5517,12 +5517,13 @@ public final class dev/kord/common/entity/DiscordRemovedGuildMember$Companion {

public final class dev/kord/common/entity/DiscordRole {
public static final field Companion Ldev/kord/common/entity/DiscordRole$Companion;
public synthetic fun <init> (ILdev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V
public fun <init> (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;)V
public synthetic fun <init> (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun <init> (ILdev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/RoleFlags;Lkotlinx/serialization/internal/SerializationConstructorMarker;)V
public fun <init> (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/RoleFlags;)V
public synthetic fun <init> (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/RoleFlags;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun component1 ()Ldev/kord/common/entity/Snowflake;
public final fun component10 ()Z
public final fun component11 ()Ldev/kord/common/entity/optional/Optional;
public final fun component12 ()Ldev/kord/common/entity/RoleFlags;
public final fun component2 ()Ljava/lang/String;
public final fun component3 ()I
public final fun component4 ()Z
Expand All @@ -5531,10 +5532,11 @@ public final class dev/kord/common/entity/DiscordRole {
public final fun component7 ()I
public final fun component8 ()Ldev/kord/common/entity/Permissions;
public final fun component9 ()Z
public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;)Ldev/kord/common/entity/DiscordRole;
public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordRole;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordRole;
public final fun copy (Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/RoleFlags;)Ldev/kord/common/entity/DiscordRole;
public static synthetic fun copy$default (Ldev/kord/common/entity/DiscordRole;Ldev/kord/common/entity/Snowflake;Ljava/lang/String;IZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/optional/Optional;ILdev/kord/common/entity/Permissions;ZZLdev/kord/common/entity/optional/Optional;Ldev/kord/common/entity/RoleFlags;ILjava/lang/Object;)Ldev/kord/common/entity/DiscordRole;
public fun equals (Ljava/lang/Object;)Z
public final fun getColor ()I
public final fun getFlags ()Ldev/kord/common/entity/RoleFlags;
public final fun getHoist ()Z
public final fun getIcon ()Ldev/kord/common/entity/optional/Optional;
public final fun getId ()Ldev/kord/common/entity/Snowflake;
Expand Down Expand Up @@ -8307,6 +8309,70 @@ public final class dev/kord/common/entity/ResolvedObjects$Companion {
public final fun serializer ()Lkotlinx/serialization/KSerializer;
}

public abstract class dev/kord/common/entity/RoleFlag {
public static final field Companion Ldev/kord/common/entity/RoleFlag$Companion;
public synthetic fun <init> (ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun equals (Ljava/lang/Object;)Z
public final fun getShift ()I
public final fun getValue ()I
public final fun hashCode ()I
public final fun plus (Ldev/kord/common/entity/RoleFlag;)Ldev/kord/common/entity/RoleFlags;
public final fun plus (Ldev/kord/common/entity/RoleFlags;)Ldev/kord/common/entity/RoleFlags;
public final fun toString ()Ljava/lang/String;
}

public final class dev/kord/common/entity/RoleFlag$Companion {
public final fun fromShift (I)Ldev/kord/common/entity/RoleFlag;
public final fun getEntries ()Ljava/util/List;
}

public final class dev/kord/common/entity/RoleFlag$InPrompt : dev/kord/common/entity/RoleFlag {
public static final field INSTANCE Ldev/kord/common/entity/RoleFlag$InPrompt;
}

public final class dev/kord/common/entity/RoleFlag$Unknown : dev/kord/common/entity/RoleFlag {
}

public final class dev/kord/common/entity/RoleFlagKt {
public static final fun RoleFlags (Ljava/lang/Iterable;)Ldev/kord/common/entity/RoleFlags;
public static final fun RoleFlags (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/RoleFlags;
public static final fun RoleFlags ([Ldev/kord/common/entity/RoleFlag;)Ldev/kord/common/entity/RoleFlags;
public static final fun RoleFlags ([Ldev/kord/common/entity/RoleFlags;)Ldev/kord/common/entity/RoleFlags;
public static synthetic fun RoleFlags$default (Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ldev/kord/common/entity/RoleFlags;
public static final fun RoleFlags0 (Ljava/lang/Iterable;)Ldev/kord/common/entity/RoleFlags;
}

public final class dev/kord/common/entity/RoleFlags {
public static final field Companion Ldev/kord/common/entity/RoleFlags$Companion;
public final fun contains (Ldev/kord/common/entity/RoleFlag;)Z
public final fun contains (Ldev/kord/common/entity/RoleFlags;)Z
public final fun copy (Lkotlin/jvm/functions/Function1;)Ldev/kord/common/entity/RoleFlags;
public fun equals (Ljava/lang/Object;)Z
public final fun getValue ()I
public final fun getValues ()Ljava/util/Set;
public fun hashCode ()I
public final fun minus (Ldev/kord/common/entity/RoleFlag;)Ldev/kord/common/entity/RoleFlags;
public final fun minus (Ldev/kord/common/entity/RoleFlags;)Ldev/kord/common/entity/RoleFlags;
public final fun plus (Ldev/kord/common/entity/RoleFlag;)Ldev/kord/common/entity/RoleFlags;
public final fun plus (Ldev/kord/common/entity/RoleFlags;)Ldev/kord/common/entity/RoleFlags;
public fun toString ()Ljava/lang/String;
}

public final class dev/kord/common/entity/RoleFlags$Builder {
public fun <init> ()V
public fun <init> (I)V
public synthetic fun <init> (IILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun build ()Ldev/kord/common/entity/RoleFlags;
public final fun unaryMinus (Ldev/kord/common/entity/RoleFlag;)V
public final fun unaryMinus (Ldev/kord/common/entity/RoleFlags;)V
public final fun unaryPlus (Ldev/kord/common/entity/RoleFlag;)V
public final fun unaryPlus (Ldev/kord/common/entity/RoleFlags;)V
}

public final class dev/kord/common/entity/RoleFlags$Companion {
public final fun serializer ()Lkotlinx/serialization/KSerializer;
}

public final class dev/kord/common/entity/RoleSubscription {
public static final field Companion Ldev/kord/common/entity/RoleSubscription$Companion;
public synthetic fun <init> (ILdev/kord/common/entity/Snowflake;Ljava/lang/String;IZLkotlinx/serialization/internal/SerializationConstructorMarker;)V
Expand Down
Loading

0 comments on commit 82792e2

Please sign in to comment.