コード例 #1
0
 /// <summary>
 /// Gets a list of all roles in this guild.
 /// <para>Requires <see cref="DiscordPermission.ManageRoles"/>.</para>
 /// </summary>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <IReadOnlyList <DiscordRole> > GetRoles()
 {
     return(http.GetGuildRoles(Id));
 }