Skip to content

Commit

Permalink
Fix/ambigiuous reference (#2181)
Browse files Browse the repository at this point in the history
* fix: Ambigiuous reference when creating roles

* Update RestGuild.cs
  • Loading branch information
quinchs committed Mar 9, 2022
1 parent 765c0c5 commit f8ec3c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs
Expand Up @@ -763,11 +763,6 @@ public RestRole GetRole(ulong id)
return null;
}

/// <inheritdoc />
public Task<RestRole> CreateRoleAsync(string name, GuildPermissions? permissions = default(GuildPermissions?), Color? color = default(Color?),
bool isHoisted = false, RequestOptions options = null)
=> CreateRoleAsync(name, permissions, color, isHoisted, false, options);

/// <summary>
/// Creates a new role with the provided name.
/// </summary>
Expand Down
4 changes: 0 additions & 4 deletions src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
Expand Up @@ -999,10 +999,6 @@ public SocketRole GetRole(ulong id)
return null;
}

/// <inheritdoc />
public Task<RestRole> CreateRoleAsync(string name, GuildPermissions? permissions = default(GuildPermissions?), Color? color = default(Color?),
bool isHoisted = false, RequestOptions options = null)
=> GuildHelper.CreateRoleAsync(this, Discord, name, permissions, color, isHoisted, false, options);
/// <summary>
/// Creates a new role with the provided name.
/// </summary>
Expand Down

0 comments on commit f8ec3c7

Please sign in to comment.