Solves Issue 342, but there might be a cleaner way to do this that doesnt make you end up with a IGuild in the RestRole.

This commit is contained in:
Sindre
2016-11-10 16:47:51 +01:00
parent 9fcf88b7ac
commit a6f89b7c36
3 changed files with 7 additions and 6 deletions

View File

@@ -142,7 +142,7 @@ namespace Discord.Rest
if (name == null) throw new ArgumentNullException(nameof(name));
var model = await client.ApiClient.CreateGuildRoleAsync(guild.Id, options).ConfigureAwait(false);
var role = RestRole.Create(client, model);
var role = RestRole.Create(guild, client, model);
await role.ModifyAsync(x =>
{