io.github.freya022.botcommands.api.components.builder.IUniqueComponent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BotCommands Show documentation
Show all versions of BotCommands Show documentation
A Kotlin-first (and Java) framework that makes creating Discord bots a piece of cake, using the JDA library.
package io.github.freya022.botcommands.api.components.builder
/**
* Allows components to be used once before being deleted
*
* ### Component deletion
* - If the component is a group, then all of its owned components will also be deleted.
* - If the component is inside a group, then all the group's components will also be deleted.
*
* This will also cause cancellation of any associated timeout.
*/
interface IUniqueComponent {
/**
* Sets this component as being usable only once before being deleted
*
* ### Component deletion
* - If the component is a group, then all of its owned components will also be deleted.
* - If the component is inside a group, then all the group's components will also be deleted.
*
* This will also cause cancellation of any associated timeout.
*/
var oneUse: Boolean
}