@API(status=STABLE)
public class Arguments
extends java.lang.Object
SlashCommandPattern
Constructor and Description |
---|
Arguments() |
Arguments(java.util.Map<java.lang.String,java.lang.Object> arguments) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String argumentName) |
java.util.Set<java.lang.String> |
getArgumentNames() |
java.lang.String |
getAsString(java.lang.String argumentName) |
Cashtag |
getCashtag(java.lang.String argumentName) |
Hashtag |
getHashtag(java.lang.String argumentName) |
Mention |
getMention(java.lang.String argumentName) |
java.lang.String |
getString(java.lang.String argumentName) |
public Arguments()
public Arguments(java.util.Map<java.lang.String,java.lang.Object> arguments)
public java.util.Set<java.lang.String> getArgumentNames()
public java.lang.Object get(java.lang.String argumentName)
argumentName
- the name of the argument to be retrievedString
, Mention
,
Cashtag
, Hashtag
depending on the corresponding SlashCommandPattern
.public java.lang.String getAsString(java.lang.String argumentName)
argumentName
- the name of the argument to be retrievedpublic java.lang.String getString(java.lang.String argumentName)
argumentName
- the name of the argument to be retrievedString
, null otherwisepublic Hashtag getHashtag(java.lang.String argumentName)
argumentName
- the name of the argument to be retrievedHashtag
, null otherwisepublic Cashtag getCashtag(java.lang.String argumentName)
argumentName
- the name of the argument to be retrievedCashtag
, null otherwise