Discord.net: Support code snippets as parameters in Discord.Net.Commands

Created on 19 Oct 2016  路  2Comments  路  Source: discord-net/Discord.Net

Currently, if a parameter such as

`hello, i am some code`

is used, it will not yield "hello, i am some code", likewise, the following examples have the same issue

``````

int x = 0;```

hello, i am more code```
``````

commands question

Most helpful comment

ParameterType.Unparsed in 0.9, or [Remainder] in 1.0.

All 2 comments

ParameterType.Unparsed in 0.9, or [Remainder] in 1.0.

In 1.0, you can make your own type reader. I would strongly recommend making one for this.
It would also allow you to take advantage of the language indicator for hints to pass to your evaluator.

But anyways, the functionality of you being able to create your own Type Readers was for this very purpose, so we didn't have to cover every situation, especially when there would be difference of opinion on implementation.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nolij picture Nolij  路  5Comments

ThePademelon picture ThePademelon  路  7Comments

foxbot picture foxbot  路  4Comments

Foxite picture Foxite  路  4Comments

foxbot picture foxbot  路  4Comments