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

@@ -87,7 +87,7 @@ namespace Discord.Rest
if (model.Roles != null)
{
for (int i = 0; i < model.Roles.Length; i++)
roles[model.Roles[i].Id] = RestRole.Create(Discord, model.Roles[i]);
roles[model.Roles[i].Id] = RestRole.Create(this, Discord, model.Roles[i]);
}
_roles = roles.ToImmutable();