Browse Source

Fix/ambigiuous reference (#2181)

* fix: Ambigiuous reference when creating roles

* Update RestGuild.cs
tags/3.4.1
Quin Lynch GitHub 3 years ago
parent
commit
f8ec3c79c2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions
  1. +0
    -5
      src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs
  2. +0
    -4
      src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs

+ 0
- 5
src/Discord.Net.Rest/Entities/Guilds/RestGuild.cs View File

@@ -763,11 +763,6 @@ namespace Discord.Rest
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>


+ 0
- 4
src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs View File

@@ -999,10 +999,6 @@ namespace Discord.WebSocket
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>


Loading…
Cancel
Save