forked from soxtoby/SlackNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IMessage.cs
30 lines (26 loc) · 1011 Bytes
/
IMessage.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using SlackNet.Blocks;
namespace SlackNet.Bot;
public interface IMessage
{
Conversation Conversation { get; set; }
[Obsolete("Use Conversation instead")]
Hub Hub { get; set; }
User User { get; set; }
string Text { get; set; }
string Ts { get; set; }
DateTime Timestamp { get; }
string ThreadTs { get; set; }
DateTime ThreadTimestamp { get; }
IList<Attachment> Attachments { get; set; }
IList<File> Files { get; set; }
IList<Block> Blocks { get; set; }
bool IsInThread { get; }
bool MentionsBot { get; }
Task ReplyWith(string text, bool createThread = false, CancellationToken? cancellationToken = null);
Task ReplyWith(BotMessage message, bool createThread = false, CancellationToken? cancellationToken = null);
Task ReplyWith(Func<Task<BotMessage>> createReply, bool createThread = false, CancellationToken? cancellationToken = null);
}