|
|
@@ -55,7 +55,7 @@ namespace Discord.WebSocket |
|
|
|
public Task<IReadOnlyCollection<RestConnection>> GetConnectionsAsync(RequestOptions options = null) |
|
|
|
=> ClientHelper.GetConnectionsAsync(this, options ?? RequestOptions.Default); |
|
|
|
/// <inheritdoc /> |
|
|
|
public Task<RestInviteMetadata> GetInviteAsync(string inviteId, bool withCount = false, RequestOptions options = null) |
|
|
|
public Task<RestInviteMetadata> GetInviteAsync(string inviteId, RequestOptions options = null) |
|
|
|
=> ClientHelper.GetInviteAsync(this, inviteId, options ?? RequestOptions.Default); |
|
|
|
|
|
|
|
// IDiscordClient |
|
|
@@ -70,8 +70,8 @@ namespace Discord.WebSocket |
|
|
|
async Task<IReadOnlyCollection<IConnection>> IDiscordClient.GetConnectionsAsync(RequestOptions options) |
|
|
|
=> await GetConnectionsAsync(options).ConfigureAwait(false); |
|
|
|
|
|
|
|
async Task<IInvite> IDiscordClient.GetInviteAsync(string inviteId, bool withCount, RequestOptions options) |
|
|
|
=> await GetInviteAsync(inviteId, withCount, options).ConfigureAwait(false); |
|
|
|
async Task<IInvite> IDiscordClient.GetInviteAsync(string inviteId, RequestOptions options) |
|
|
|
=> await GetInviteAsync(inviteId, options).ConfigureAwait(false); |
|
|
|
|
|
|
|
Task<IGuild> IDiscordClient.GetGuildAsync(ulong id, CacheMode mode, RequestOptions options) |
|
|
|
=> Task.FromResult<IGuild>(GetGuild(id)); |
|
|
|