Browse Source

Added a Rest property to DiscordShardedClient

pull/1326/head
Casino Boyale 6 years ago
parent
commit
fd3712332a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/Discord.Net.WebSocket/DiscordShardedClient.cs

+ 5
- 0
src/Discord.Net.WebSocket/DiscordShardedClient.cs View File

@@ -37,6 +37,11 @@ namespace Discord.WebSocket
/// <inheritdoc /> /// <inheritdoc />
public override IReadOnlyCollection<RestVoiceRegion> VoiceRegions => _shards[0].VoiceRegions; public override IReadOnlyCollection<RestVoiceRegion> VoiceRegions => _shards[0].VoiceRegions;


/// <summary>
/// Provides access to a REST-only client with a shared state from this client.
/// </summary>
public DiscordSocketRestClient Rest => _shards[0].Rest;

/// <summary> Creates a new REST/WebSocket Discord client. </summary> /// <summary> Creates a new REST/WebSocket Discord client. </summary>
public DiscordShardedClient() : this(null, new DiscordSocketConfig()) { } public DiscordShardedClient() : this(null, new DiscordSocketConfig()) { }
/// <summary> Creates a new REST/WebSocket Discord client. </summary> /// <summary> Creates a new REST/WebSocket Discord client. </summary>


Loading…
Cancel
Save