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:
@@ -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 =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user