コード例 #1
0
 public SlackMessage(SlackBotApi api, string id, string text, SlackChannel channel, SlackUser user, DateTime?timestamp = null, params SlackAttachment[] attachments)
 {
     SetApi(api);
     Id          = id;
     Text        = text;
     Channel     = channel;
     User        = user;
     Timestamp   = timestamp ?? DateTime.UtcNow;
     Attachments = new List <SlackAttachment>(attachments);
 }
コード例 #2
0
 public async Task <SlackEphemeral> SendEphemeralAsync(SlackUser user, string text, params SlackAttachment[] attachments)
 {
     return(await Api.SendEphemeralAsync(user, this, text, attachments));
 }
コード例 #3
0
 public SlackFile(SlackBotApi api, string id, SlackUser user)
 {
     SetApi(api);
     Id   = id;
     User = user;
 }