Exposed DiscordClient.MessageQueue
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Discord
|
||||
/// <summary> Gets the service manager used for adding extensions to this client. </summary>
|
||||
public ServiceManager Services { get; }
|
||||
/// <summary> Gets the queue used for outgoing messages, if enabled. </summary>
|
||||
internal MessageQueue MessageQueue { get; }
|
||||
public MessageQueue MessageQueue { get; }
|
||||
/// <summary> Gets the logger used for this client. </summary>
|
||||
internal Logger Logger { get; }
|
||||
|
||||
|
||||
@@ -44,11 +44,11 @@ namespace Discord.Net
|
||||
_pending = new ConcurrentQueue<MessageQueueItem>();
|
||||
}
|
||||
|
||||
public void QueueSend(ulong channelId, string text, bool isTTS)
|
||||
internal void QueueSend(ulong channelId, string text, bool isTTS)
|
||||
{
|
||||
_pending.Enqueue(new MessageQueueItem(0, channelId, text, isTTS));
|
||||
}
|
||||
public void QueueEdit(ulong channelId, ulong messageId, string text)
|
||||
internal void QueueEdit(ulong channelId, ulong messageId, string text)
|
||||
{
|
||||
_pending.Enqueue(new MessageQueueItem(channelId, messageId, text, false));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user