feature: Added a Rest property to DiscordShardedClient (#1326)
* Added a Rest property to DiscordShardedClient * Moved the rest client onto the BaseSocketClient
This commit is contained in:
committed by
Christopher F
parent
c864f48c3b
commit
9fede346d3
@@ -36,6 +36,11 @@ namespace Discord.WebSocket
|
||||
/// </returns>
|
||||
public abstract IActivity Activity { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Provides access to a REST-only client with a shared state from this client.
|
||||
/// </summary>
|
||||
public abstract DiscordSocketRestClient Rest { get; }
|
||||
|
||||
internal new DiscordSocketApiClient ApiClient => base.ApiClient as DiscordSocketApiClient;
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user