Class UnsafeUserCommand

  • All Implemented Interfaces:
    com.kotlindiscord.kord.extensions.koin.KordExKoinComponent , com.kotlindiscord.kord.extensions.types.Lockable , org.koin.core.component.KoinComponent

    
    public final class UnsafeUserCommand<M extends ModalForm>
    extends UserCommand<UnsafeUserCommandContext<M>, M>
                        

    Like a standard user command, but with less safety features.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsafeUserCommand(Extension extension, Function0<M> modal)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final InitialUserCommandResponse getInitialResponse() Initial response type.
      final Unit setInitialResponse(InitialUserCommandResponse initialResponse) Initial response type.
      Function0<M> getModal()
      Unit call(UserCommandInteractionCreateEvent event, Map<String, Object> cache)
      Unit respondText(UnsafeUserCommandContext<M> context, String message, FailureReason<?> failureType)
      • Methods inherited from class com.kotlindiscord.kord.extensions.commands.application.ApplicationCommand

        check, check, doCall, getAllowByDefault, getAllowInDms, getCheckList, getDefaultMemberPermissions, getGuildId, getLocalizedName, getRegistry, getRequiredPerms, guild, guild, guild, localize, requireBotPermissions, requirePermission, runStandardChecks, setAllowByDefault, setAllowInDms, setDefaultMemberPermissions, setGuildId
      • Methods inherited from class com.kotlindiscord.kord.extensions.commands.application.user.UserCommand

        action, firstSentryBreadcrumb, getBody, getComponentRegistry, getType, handleError, runChecks, setBody, validate
      • Methods inherited from class com.kotlindiscord.kord.extensions.commands.Command

        checkBotPerms, emitEventAsync, getBundle, getExtension, getKord, getLocking, getMutex, getName, getNameTranslationCache, getResolvedBundle, getSentry, getSettings, getTranslationsProvider, setBundle, setLocking, setMutex, setName
      • Methods inherited from class com.kotlindiscord.kord.extensions.koin.KordExKoinComponent

        getKoin
      • Methods inherited from class com.kotlindiscord.kord.extensions.types.Lockable

        lock, unlock, withLock
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait