嗨,我想在sendMessage之后对表情符号做出反应,但我使用的是discord.io,而不是discord.js,找不到适合我的教程。
我还尝试了一些discord.js教程,但是当我例如放置在string s = @"Trade Info
NE62 -- NE62
Symbol Side Quantity Avg Price ClientAcct
ESU8 BUY 100 2809.2500 35199008
FLT.V SELL 15,000 1.7040 tB324aV
TRST.TO SELL 4,850 7.1500 tB324aVV
YGR.TO SELL 5,200 5.3806 tB324aV";
var data = s.Split(new char[] { '\r','\n'},StringSplitOptions.RemoveEmptyEntries)
.SkipWhile(x => !x.StartsWith("Symbol"))
.Skip(1)
.Select(line => line.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries))
.Select(d => new {
Symbol = d[0],
Side = d[1],
Quantity = int.Parse(d[2].Replace(",","")),
AvgPrice = decimal.Parse(d[3]),
ClientAcct = d[4]
});
yourDataGridView.DataSource = data.ToList();
上的命令在不和谐状态下崩溃。
这是我的代码了
pd.DataFrame([np.array([1,2,3]),np.array([1,2,3,4]),np.array([6,7])],columns=['A','B','C','D'])
答案 0 :(得分:0)
您需要使用addReaction()
函数:
bot.sendMessage({
to: channelID,
message: "```Thanks for donating. ?```"
}, function (err, response) {
if (err) console.error(err);
bot.addReaction({
channelID,
messageID: response.id,
reaction: ":heart:"
});
});
参考: