예제 #1
0
 /// <summary>
 /// Creates a new role for this guild.
 /// <para>Requires <see cref="DiscordPermission.ManageRoles"/>.</para>
 /// </summary>
 /// <param name="options">A set of optional options to use when creating the role.</param>
 /// <exception cref="ArgumentNullException"></exception>
 /// <exception cref="DiscordHttpApiException"></exception>
 public Task <DiscordRole> CreateRole(CreateRoleOptions options)
 {
     return(http.CreateGuildRole(Id, options));
 }