【发布时间】:2017-11-11 14:26:33
【问题描述】:
所以我想创建一个命令,用户在该命令中键入其他内容,并由此定义一个字符串。该字符串稍后用于将用户重定向到网站。
意思:
//The string is defined here by user (string = what user typed in after "command") (how?)
commands.CreateCommand("command", string add_link)
.Do(async (e) =>
{
//String is added to website.
await e.Channel.SendMessage("www.website.com/" + add_link);
});
这可能吗?
【问题讨论】:
-
那么,用户输入“command thingamabob”,而您想将“thingamabob”作为字符串单独获取?
-
@JamesCurran 是的,我正是想要那个。
标签: c# string command message discord.net