Record Class PermissionChecker
java.lang.Object
java.lang.Record
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.core.utility.PermissionChecker
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionChecker(net.dv8tion.jda.api.entities.Guild guild) Creates an instance of aPermissionCheckerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull BooleancanBotAddRoleToMember(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotBanUser(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotCreateRole(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotDeafenUser(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotDeleteMessages(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotKickUser(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotManageChannel(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotRemoveRoleFromMember(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotTimeOutUsers(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanBotUnBanUser(@NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAddRoleToMember(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotBanUsers(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotDeafenUser(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotDeleteMessages(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotKickUser(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotManageChannel(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotManageRoles(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotTimeOutUsers(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouAndBotUnBanUsers(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouBanUser(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouCreateRole(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouDeafenUser(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouDeleteMessages(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouKickUser(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouManageChannel(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouRemoveRoleFromMember(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouTimeOutUsers(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) @NotNull BooleancanYouUnBanUser(@NotNull YMember member, @NotNull YSlashCommandInteractionEvent event) final booleanIndicates whether some other object is "equal to" this one.net.dv8tion.jda.api.entities.Guildguild()Returns the value of theguildrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionChecker
public PermissionChecker(net.dv8tion.jda.api.entities.Guild guild) Creates an instance of aPermissionCheckerrecord class.- Parameters:
guild- the value for theguildrecord component
-
-
Method Details
-
canYouUnBanUser
@NotNull public @NotNull Boolean canYouUnBanUser(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouBanUser
@NotNull public @NotNull Boolean canYouBanUser(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouKickUser
@NotNull public @NotNull Boolean canYouKickUser(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouDeafenUser
@NotNull public @NotNull Boolean canYouDeafenUser(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAddRoleToMember
@NotNull public @NotNull Boolean canYouAddRoleToMember(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouDeleteMessages
@NotNull public @NotNull Boolean canYouDeleteMessages(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouCreateRole
@NotNull public @NotNull Boolean canYouCreateRole(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouManageChannel
@NotNull public @NotNull Boolean canYouManageChannel(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouTimeOutUsers
@NotNull public @NotNull Boolean canYouTimeOutUsers(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotUnBanUser
@NotNull public @NotNull Boolean canBotUnBanUser(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotBanUser
@NotNull public @NotNull Boolean canBotBanUser(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotKickUser
@NotNull public @NotNull Boolean canBotKickUser(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotDeafenUser
@NotNull public @NotNull Boolean canBotDeafenUser(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotAddRoleToMember
@NotNull public @NotNull Boolean canBotAddRoleToMember(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotRemoveRoleFromMember
@NotNull public @NotNull Boolean canBotRemoveRoleFromMember(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotDeleteMessages
@NotNull public @NotNull Boolean canBotDeleteMessages(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotCreateRole
@NotNull public @NotNull Boolean canBotCreateRole(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotManageChannel
@NotNull public @NotNull Boolean canBotManageChannel(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canBotTimeOutUsers
@NotNull public @NotNull Boolean canBotTimeOutUsers(@NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotUnBanUsers
@NotNull public @NotNull Boolean canYouAndBotUnBanUsers(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotBanUsers
@NotNull public @NotNull Boolean canYouAndBotBanUsers(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotKickUser
@NotNull public @NotNull Boolean canYouAndBotKickUser(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotDeafenUser
@NotNull public @NotNull Boolean canYouAndBotDeafenUser(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouRemoveRoleFromMember
@NotNull public @NotNull Boolean canYouRemoveRoleFromMember(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotDeleteMessages
@NotNull public @NotNull Boolean canYouAndBotDeleteMessages(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotManageRoles
@NotNull public @NotNull Boolean canYouAndBotManageRoles(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotManageChannel
@NotNull public @NotNull Boolean canYouAndBotManageChannel(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
canYouAndBotTimeOutUsers
@NotNull public @NotNull Boolean canYouAndBotTimeOutUsers(@NotNull @NotNull YMember member, @NotNull @NotNull YSlashCommandInteractionEvent event) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
guild
public net.dv8tion.jda.api.entities.Guild guild()Returns the value of theguildrecord component.- Returns:
- the value of the
guildrecord component
-