Removed unused parameters
This commit is contained in:
@@ -11,12 +11,12 @@ namespace Discord
|
||||
|
||||
public static async Task<IDMChannel> GetDMChannelAsync(this IDiscordClient client, ulong id)
|
||||
=> await client.GetPrivateChannelAsync(id).ConfigureAwait(false) as IDMChannel;
|
||||
public static async Task<IEnumerable<IDMChannel>> GetDMChannelsAsync(this IDiscordClient client, ulong id)
|
||||
public static async Task<IEnumerable<IDMChannel>> GetDMChannelsAsync(this IDiscordClient client)
|
||||
=> (await client.GetPrivateChannelsAsync().ConfigureAwait(false)).Select(x => x as IDMChannel).Where(x => x != null);
|
||||
|
||||
public static async Task<IGroupChannel> GetGroupChannelAsync(this IDiscordClient client, ulong id)
|
||||
=> await client.GetPrivateChannelAsync(id).ConfigureAwait(false) as IGroupChannel;
|
||||
public static async Task<IEnumerable<IGroupChannel>> GetGroupChannelsAsync(this IDiscordClient client, ulong id)
|
||||
public static async Task<IEnumerable<IGroupChannel>> GetGroupChannelsAsync(this IDiscordClient client)
|
||||
=> (await client.GetPrivateChannelsAsync().ConfigureAwait(false)).Select(x => x as IGroupChannel).Where(x => x != null);
|
||||
|
||||
public static async Task<IVoiceRegion> GetOptimalVoiceRegionAsync(this IDiscordClient discord)
|
||||
|
||||
@@ -10,12 +10,12 @@ namespace Discord.WebSocket
|
||||
|
||||
public static IDMChannel GetDMChannel(this DiscordSocketClient client, ulong id)
|
||||
=> client.GetPrivateChannelAsync(id) as IDMChannel;
|
||||
public static IEnumerable<IDMChannel> GetDMChannels(this DiscordSocketClient client, ulong id)
|
||||
public static IEnumerable<IDMChannel> GetDMChannels(this DiscordSocketClient client)
|
||||
=> client.GetPrivateChannels().Select(x => x as IDMChannel).Where(x => x != null);
|
||||
|
||||
public static IGroupChannel GetGroupChannel(this DiscordSocketClient client, ulong id)
|
||||
=> client.GetPrivateChannel(id) as IGroupChannel;
|
||||
public static IEnumerable<IGroupChannel> GetGroupChannels(this DiscordSocketClient client, ulong id)
|
||||
public static IEnumerable<IGroupChannel> GetGroupChannels(this DiscordSocketClient client)
|
||||
=> client.GetPrivateChannels().Select(x => x as IGroupChannel).Where(x => x != null);
|
||||
|
||||
public static IVoiceRegion GetVoiceRegion(this DiscordSocketClient client, string id)
|
||||
|
||||
Reference in New Issue
Block a user