私はコマンドを作成したいと思っています。ここでユーザーはコマンドで何か他のものを入力し、それによって文字列が定義されます。その文字列は後でユーザーをWebサイトにリダイレクトするために使用されます。C#+ Discord.NET - コマンドに文字列を使用しますか?
意味:
//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);
});
はあっても可能ですか?
ので、ユーザー:このサンプル・ボットから適応
例"コマンドthingamabob"をタイプし、 "thingamabob"を単独で文字列として取得したいのですか? –
@JamesCurranはい、私はそれがほしいと思う。 – ThePebbleStealer