Method SetNsfw
| Improve this Doc View SourceSetNsfw(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. |