UserCommandImpl

class UserCommandImpl(val yde: YDE, val json: JsonNode, val idAsLong: Long, val interaction: Interaction) : ApplicationCommandImpl, UserCommand(source)

Constructors

Link copied to clipboard
constructor(yde: YDE, json: JsonNode, idAsLong: Long, interaction: Interaction)

Functions

Link copied to clipboard
open override fun reply(embed: Embed): Reply
open override fun reply(content: String): Reply

Replies to an interaction.

Link copied to clipboard
open override fun toString(): String

Converts this entity to a string using the io.github.ydwk.ydwk.util.EntityToStringBuilder.

Properties

Link copied to clipboard
open override val applicationId: GetterSnowFlake

The Id of the application that this interaction is for.

Link copied to clipboard
open val asIncrement: Long

The increment of this snowflake.

Link copied to clipboard
open val asProcessId: Long

The process id of this snowflake.

Link copied to clipboard
open val asTimestamp: Long

The timestamp of this snowflake. (Milliseconds since Discord Epoch, the first second of 2015 or 1420070400000.)

Link copied to clipboard
open val asWorkerId: Long

The worker id of this snowflake.

Link copied to clipboard
open override val channel: Channel?

The channel that this interaction is for.

Link copied to clipboard
open override val description: String

The description for CHAT_INPUT commands, 1-100 characters. Empty string for USER and MESSAGE commands.

Link copied to clipboard
open override val guild: Guild?

The guild where the interaction occurred.

Link copied to clipboard
open val id: String

The id of this snowflake as a String.

Link copied to clipboard
open override val idAsLong: Long

The id of this snowflake as a Long.

Link copied to clipboard
Link copied to clipboard
open override val interactionType: InteractionType

The type of this interaction.

Link copied to clipboard
open override val isDmPermissions: Boolean?

Whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are visible.

Link copied to clipboard
open override val isNsfw: Boolean?

Whether the command is 'Not Safe For Work' (NSFW), only for globally-scoped commands. By default, commands are not NSFW.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override val member: Member?

The member who invoked the command.

Link copied to clipboard
open override val message: Message?

The message of this interaction.

Link copied to clipboard
open override val name: String

The name of the command.

Link copied to clipboard
open override val permissions: Long?

Gets bitwise set of permissions the app or bot has within the channel the interaction was sent from

Link copied to clipboard
open override val targetId: GetterSnowFlake?

The id of the user or message targeted by a user or message command

Link copied to clipboard
open override val targetMember: Member

The member who the app command was invoked for.

Link copied to clipboard
open override val targetUser: User

The user who the app command was invoked for.

Link copied to clipboard
open override val token: String

The token of this interaction.

Link copied to clipboard

The type of the command.

Link copied to clipboard
open override val user: User

The user who invoked the command.

Link copied to clipboard
open override val version: Int

The version of this interaction.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.