Package org.javacord.core.interaction
Class UserContextMenuBuilderDelegateImpl
- java.lang.Object
-
- org.javacord.core.interaction.ApplicationCommandBuilderDelegateImpl<UserContextMenu>
-
- org.javacord.core.interaction.UserContextMenuBuilderDelegateImpl
-
- All Implemented Interfaces:
ApplicationCommandBuilderDelegate<UserContextMenu>
,UserContextMenuBuilderDelegate
public class UserContextMenuBuilderDelegateImpl extends ApplicationCommandBuilderDelegateImpl<UserContextMenu> implements UserContextMenuBuilderDelegate
-
-
Field Summary
-
Fields inherited from class org.javacord.core.interaction.ApplicationCommandBuilderDelegateImpl
defaultMemberPermissions, description, descriptionLocalizations, dmPermission, name, nameLocalizations, nsfw
-
-
Constructor Summary
Constructors Constructor Description UserContextMenuBuilderDelegateImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserContextMenu
createInstance(DiscordApiImpl api, com.fasterxml.jackson.databind.JsonNode jsonNode)
Returns a created instance for the application command the builder is for.com.fasterxml.jackson.databind.node.ObjectNode
getJsonBodyForApplicationCommand()
Gets the JSON body for this application command.-
Methods inherited from class org.javacord.core.interaction.ApplicationCommandBuilderDelegateImpl
addDescriptionLocalization, addNameLocalization, createForServer, createGlobal, setDefaultDisabled, setDefaultEnabledForEveryone, setDefaultEnabledForPermissions, setDescription, setEnabledInDms, setName, setNsfw
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javacord.api.interaction.internal.ApplicationCommandBuilderDelegate
addDescriptionLocalization, addNameLocalization, createForServer, createGlobal, setDefaultDisabled, setDefaultEnabledForEveryone, setDefaultEnabledForPermissions, setDescription, setEnabledInDms, setName, setNsfw
-
-
-
-
Method Detail
-
getJsonBodyForApplicationCommand
public com.fasterxml.jackson.databind.node.ObjectNode getJsonBodyForApplicationCommand()
Description copied from class:ApplicationCommandBuilderDelegateImpl
Gets the JSON body for this application command.- Overrides:
getJsonBodyForApplicationCommand
in classApplicationCommandBuilderDelegateImpl<UserContextMenu>
- Returns:
- The JSON body for this application command.
-
createInstance
public UserContextMenu createInstance(DiscordApiImpl api, com.fasterxml.jackson.databind.JsonNode jsonNode)
Description copied from class:ApplicationCommandBuilderDelegateImpl
Returns a created instance for the application command the builder is for.- Specified by:
createInstance
in classApplicationCommandBuilderDelegateImpl<UserContextMenu>
- Parameters:
api
- The DiscordApiImpl.jsonNode
- The json of the application command.- Returns:
- An instance of application command from the JSON.
-
-