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