Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public async Task <SlackEphemeral> SendEphemeralAsync(SlackUser user, string text, params SlackAttachment[] attachments)
 {
     return(await Api.SendEphemeralAsync(user, this, text, attachments));
 }
Exemplo n.º 3
0
 public SlackFile(SlackBotApi api, string id, SlackUser user)
 {
     SetApi(api);
     Id   = id;
     User = user;
 }