Discore
Show / Hide Table of Contents

Method SetNsfw

| Improve this Doc View Source

SetNsfw(bool)

Sets whether this channel is NSFW (not-safe-for-work) (if a text channel).

Declaration
public CreateGuildChannelOptions SetNsfw(bool nsfw)
Parameters
Type Name Description
bool nsfw
Returns
Type Description
CreateGuildChannelOptions
Exceptions
Type Condition
InvalidOperationException

Thrown if this builder is not for a text channel.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX