Record Class YusufOptionMapping
java.lang.Object
java.lang.Record
io.github.yusufsdiscordbot.yusufsdiscordcore.bot.command_option.YusufOptionMapping
public record YusufOptionMapping(net.dv8tion.jda.api.interactions.commands.OptionMapping optionMapping)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionYusufOptionMapping(net.dv8tion.jda.api.interactions.commands.OptionMapping optionMapping) Creates an instance of aYusufOptionMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.dv8tion.jda.api.entities.AudioChannelbooleandoublenet.dv8tion.jda.api.entities.GuildChannellong@NotNull YMembernet.dv8tion.jda.api.entities.IMentionablenet.dv8tion.jda.api.entities.MessageChannelnet.dv8tion.jda.api.entities.NewsChannelnet.dv8tion.jda.api.entities.Rolenet.dv8tion.jda.api.entities.StageChannel@NotNull Stringnet.dv8tion.jda.api.entities.TextChannelnet.dv8tion.jda.api.entities.ThreadChannelnet.dv8tion.jda.api.entities.VoiceChannelnet.dv8tion.jda.api.entities.ChannelTypeList<net.dv8tion.jda.api.entities.GuildChannel>List<net.dv8tion.jda.api.entities.Role>List<net.dv8tion.jda.api.entities.IMentionable>getName()net.dv8tion.jda.api.interactions.commands.OptionTypegetType()final inthashCode()Returns a hash code value for this object.net.dv8tion.jda.api.interactions.commands.OptionMappingReturns the value of theoptionMappingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
YusufOptionMapping
public YusufOptionMapping(net.dv8tion.jda.api.interactions.commands.OptionMapping optionMapping) Creates an instance of aYusufOptionMappingrecord class.- Parameters:
optionMapping- the value for theoptionMappingrecord component
-
-
Method Details
-
getMentionedMembers
-
getMentionedUsers
-
getMentionedRoles
-
getMentionedChannels
-
getMentions
-
getType
@Nonnull public net.dv8tion.jda.api.interactions.commands.OptionType getType() -
getName
-
getAsMember
-
getAsUser
-
getAsBoolean
public boolean getAsBoolean() -
getAsLong
public long getAsLong() -
getAsDouble
public double getAsDouble() -
getAsString
-
getAsMentionable
@Nonnull public net.dv8tion.jda.api.entities.IMentionable getAsMentionable() -
getAsRole
@Nonnull public net.dv8tion.jda.api.entities.Role getAsRole() -
getAsGuildChannel
@Nonnull public net.dv8tion.jda.api.entities.GuildChannel getAsGuildChannel() -
getAsMessageChannel
@Nullable public net.dv8tion.jda.api.entities.MessageChannel getAsMessageChannel() -
getChannelType
@Nonnull public net.dv8tion.jda.api.entities.ChannelType getChannelType() -
getAsTextChannel
@Nullable public net.dv8tion.jda.api.entities.TextChannel getAsTextChannel() -
getAsNewsChannel
@Nullable public net.dv8tion.jda.api.entities.NewsChannel getAsNewsChannel() -
getAsThreadChannel
@Nullable public net.dv8tion.jda.api.entities.ThreadChannel getAsThreadChannel() -
getAsAudioChannel
@Nullable public net.dv8tion.jda.api.entities.AudioChannel getAsAudioChannel() -
getAsVoiceChannel
@Nullable public net.dv8tion.jda.api.entities.VoiceChannel getAsVoiceChannel() -
getAsStageChannel
@Nullable public net.dv8tion.jda.api.entities.StageChannel getAsStageChannel() -
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). -
optionMapping
public net.dv8tion.jda.api.interactions.commands.OptionMapping optionMapping()Returns the value of theoptionMappingrecord component.- Returns:
- the value of the
optionMappingrecord component
-