@@ -45,7 +45,7 @@ namespace Discord | |||||
/// <summary> Gets the service manager used for adding extensions to this client. </summary> | /// <summary> Gets the service manager used for adding extensions to this client. </summary> | ||||
public ServiceManager Services { get; } | public ServiceManager Services { get; } | ||||
/// <summary> Gets the queue used for outgoing messages, if enabled. </summary> | /// <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> | /// <summary> Gets the logger used for this client. </summary> | ||||
internal Logger Logger { get; } | internal Logger Logger { get; } | ||||
@@ -44,11 +44,11 @@ namespace Discord.Net | |||||
_pending = new ConcurrentQueue<MessageQueueItem>(); | _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)); | _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)); | _pending.Enqueue(new MessageQueueItem(channelId, messageId, text, false)); | ||||
} | } | ||||