GetRoleAsync W (#2989)

This commit is contained in:
Mihail Gribkov
2024-08-29 11:22:58 +03:00
committed by GitHub
parent 2aaa0fd2ff
commit 466b491c3c
5 changed files with 47 additions and 0 deletions

View File

@@ -953,6 +953,17 @@ namespace Discord
/// A role that is associated with the specified <paramref name="id"/>; <see langword="null" /> if none is found.
/// </returns>
IRole GetRole(ulong id);
/// <summary>
/// Gets a role in this guild.
/// </summary>
/// <param name="id">The snowflake identifier for the role.</param>
/// <returns>
/// A task that represents the asynchronous creation operation. The task result contains the role
/// that is associated with the specified <paramref name="id"/>; <see langword="null" /> if none is found.
/// </returns>
Task<IRole> GetRoleAsync(ulong id, RequestOptions options = null);
/// <summary>
/// Creates a new role with the provided name.
/// </summary>