ArgResolver()

The resolver that is used for arguments.

new ArgResolver()

Extends

Methods

bool(arg, currentUsage, possible, repeat) → {boolean}

Resolves a boolean
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
boolean

async boolean(arg, currentUsage, possible, repeat) → {boolean}

Resolves a boolean
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
boolean
Overrides:

async channel(arg, currentUsage, possible, repeat) → {external:Channel}

Resolves a channel
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
external:Channel
Overrides:

async float(arg, currentUsage, possible, repeat) → {number}

Resolves a number
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
number
Overrides:

async guild(arg, currentUsage, possible, repeat) → {external:Guild}

Resolves a guild
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
external:Guild
Overrides:

int(arg, currentUsage, possible, repeat) → {number}

Resolves a integer
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
number

async integer(arg, currentUsage, possible, repeat) → {number}

Resolves a integer
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
number
Overrides:

async literal(arg, currentUsage, possible, repeat) → {string}

Resolves a literal
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
string

async member(arg, currentUsage, possible, repeat, msg) → {external:GuildMember}

Resolves a member
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
msg Message The message that triggered the command
Returns:
external:GuildMember
Overrides:

mention(arg, currentUsage, possible, repeat) → {external:User}

Resolves a user
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
external:User

message(arg, currentUsage, possible, repeat, msg) → {external:Message}

Resolves a message
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
msg Message The message that triggered the command
Returns:
external:Message

async msg(arg, currentUsage, possible, repeat, msg) → {external:Message}

Resolves a message
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
msg Message The message that triggered the command
Returns:
external:Message
Overrides:

async msgs(message, channel, limitopt) → {Promise.<?Collection.<Message>>}

Fetch messages by a snowflake or instanceof Message
Parameters:
Name Type Attributes Default Description
message Snowflake The message snowflake to validate.
channel Channel The Channel object in which the message can be found.
limit number <optional>
100 The number of messages to fetch and send back.
Returns:
Promise.<?Collection.<Message>>
Overrides:

num(arg, currentUsage, possible, repeat) → {number}

Resolves a number
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
number

number(arg, currentUsage, possible, repeat) → {number}

Resolves a number
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
number

async role(arg, currentUsage, possible, repeat, msg) → {external:Role}

Resolves a role
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
msg Message The message that triggered the command
Returns:
external:Role
Overrides:

str(arg, currentUsage, possible, repeat) → {string}

Resolves a string
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
string

async string(arg, currentUsage, possible, repeat) → {string}

Resolves a string
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
string
Overrides:

async url(arg, currentUsage, possible, repeat) → {string}

Resolves a hyperlink
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
string
Overrides:

async user(arg, currentUsage, possible, repeat) → {external:User}

Resolves a user
Parameters:
Name Type Description
arg string This arg
currentUsage Object This current usage
possible number This possible usage id
repeat boolean If it is a looping/repeating arg
Returns:
external:User
Overrides: