title: DSharpPlus How to create or set a discord channel to NSFW in C#
body: <p>PS: Sorry for my bad english, it not my first language</p>
  <p>I'm creating a public discord bot with DSharpPlus in c#.
  I know how to create channels(voice/text/category), set their roles/users permissions and figure out if a text channel is NSFW or not.</p>
  <p>However, I don't know how to <strong>create</strong> a <strong>NSFW</strong> channel (or <strong>make</strong> a channel NSFW).</p>
  <p>I was thinking that maybe it can be set with the class DiscordOverwrite, so I search in some documentations and found <a href="https://dsharpplus.github.io/api/DSharpPlus.Entities.DiscordOverwriteBuilder.html" rel="nofollow noreferrer">DSharp​Plus.​Entities.DiscordOverwriteBuilder</a>, but the class doesn't exist in the DSharpPlus package that I have.</p>
  <p>In conclusion, how do I make a NSFW text channel (with code and not manually)?</p>
  <pre><code>try
  {
      var result = await ctx.Guild.CreateChannelAsync(sName, DSharpPlus.ChannelType.Text, null, null, null, new List&lt;DiscordOverwrite&gt;());
      await ctx.Channel.SendMessageAsync($&quot;**Le salon NSFW '{result.Name}' à été créer**\n__Salon créer: {result.Mention}__&quot;).ConfigureAwait(false);
  }
  catch (Exception)
  {
      // Send error msg
      Util.SendMsg(ref ctx, Util.MessagesPreFaits.AucunSalonCréer, null, Util.EmbedType.Erreur);
      throw;
  }
  </code></pre>