This commit is contained in:
RogueException
2017-01-24 11:42:28 -04:00
parent 158222bb78
commit fe35400498
24 changed files with 15 additions and 47 deletions

View File

@@ -1,4 +1,3 @@
using System;
using System.Linq; using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;

View File

@@ -1,5 +1,4 @@
using System; using System;
using System.Linq;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Threading.Tasks; using System.Threading.Tasks;

View File

@@ -1,5 +1,4 @@
using System; using System;
using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Discord.Audio namespace Discord.Audio

View File

@@ -6,7 +6,6 @@ namespace Discord
{ {
public static class GuildUserExtensions public static class GuildUserExtensions
{ {
//TODO: Should we remove Add/Remove? Encourages race conditions.
public static Task AddRolesAsync(this IGuildUser user, params IRole[] roles) public static Task AddRolesAsync(this IGuildUser user, params IRole[] roles)
=> ChangeRolesAsync(user, add: roles); => ChangeRolesAsync(user, add: roles);
public static Task AddRolesAsync(this IGuildUser user, IEnumerable<IRole> roles) public static Task AddRolesAsync(this IGuildUser user, IEnumerable<IRole> roles)

View File

@@ -1,5 +1,4 @@
using System; using System;
using System.Linq;
namespace Discord namespace Discord
{ {

View File

@@ -1,5 +1,4 @@
using Discord.Net.Queue; using System.Collections.Generic;
using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Linq; using System.Linq;

View File

@@ -1,5 +1,4 @@
using System.Threading.Tasks; using System.Threading.Tasks;
using Model = Discord.API.Invite;
namespace Discord.Rest namespace Discord.Rest
{ {

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using System;
using System;
using System.Diagnostics; using System.Diagnostics;
using System.Threading.Tasks; using System.Threading.Tasks;
using Model = Discord.API.Role; using Model = Discord.API.Role;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using System;
using System;
using System.Threading.Tasks; using System.Threading.Tasks;
using Model = Discord.API.Role; using Model = Discord.API.Role;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Diagnostics; using System.Diagnostics;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using System;
using System;
using System.Diagnostics; using System.Diagnostics;
using System.Threading.Tasks; using System.Threading.Tasks;
using Model = Discord.API.User; using Model = Discord.API.User;

View File

@@ -1,5 +1,4 @@
using Discord.API; using Newtonsoft.Json;
using Newtonsoft.Json;
using System; using System;
using Model = Discord.API.Image; using Model = Discord.API.Image;

View File

@@ -237,7 +237,7 @@ namespace Discord.API
options = RequestOptions.CreateOrClone(options); options = RequestOptions.CreateOrClone(options);
var msg = new AuthenticateParams var msg = new AuthenticateParams
{ {
AccessToken = _authToken AccessToken = AuthToken
}; };
options.IgnoreState = true; options.IgnoreState = true;
return await SendRpcAsync<AuthenticateResponse>("AUTHENTICATE", msg, options: options).ConfigureAwait(false); return await SendRpcAsync<AuthenticateResponse>("AUTHENTICATE", msg, options: options).ConfigureAwait(false);

View File

@@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Discord.API.Rest;
using Model = Discord.API.Rpc.Channel; using Model = Discord.API.Rpc.Channel;
using Discord.Rest; using Discord.Rest;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;

View File

@@ -1,10 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Discord.Rpc.Entities.Users
{
class UserVoiceProperties
{
}
}

View File

@@ -5,7 +5,6 @@ using Discord.WebSocket;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using System; using System;
using System.IO;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading; using System.Threading;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Threading.Tasks; using System.Threading.Tasks;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;

View File

@@ -1,5 +1,4 @@
using Discord.API.Rest; using Discord.Rest;
using Discord.Rest;
using System; using System;
using System.Diagnostics; using System.Diagnostics;
using System.Threading.Tasks; using System.Threading.Tasks;