Thanks to visit codestin.com
Credit goes to github.com

Skip to content

age restricted commands do not respect Guild.nsfw #7914

@puppy0cam

Description

@puppy0cam

Description

Here is how things currently work:

  • ApplicationCommand.nsfw = true, Guild.nsfw = true, Channel.nsfw = true - Command Allowed - Expected
  • ApplicationCommand.nsfw = true, Guild.nsfw = true, Channel.nsfw = false - Command Restricted - Unexpected !!!
  • ApplicationCommand.nsfw = true, Guild.nsfw = false, Channel.nsfw = true - Command Allowed - Expected
  • ApplicationCommand.nsfw = true, Guild.nsfw = false, Channel.nsfw = false - Command Restricted - Expected
  • ApplicationCommand.nsfw = false, Guild.nsfw = true, Channel.nsfw = true - Command Allowed - Expected
  • ApplicationCommand.nsfw = false, Guild.nsfw = true, Channel.nsfw = false - Command Allowed - Expected
  • ApplicationCommand.nsfw = false, Guild.nsfw = false, Channel.nsfw = true - Command Allowed - Expected
  • ApplicationCommand.nsfw = false, Guild.nsfw = false, Channel.nsfw = false - Command Allowed - Expected

I believe the unexpected case to be unintended because the owner configured server level age restriction setting also disables the ability to toggle the age restriction setting for channels and will always show in channel settings as if the channel is age restricted even if Channel.nsfw is actually set to false.

Steps to Reproduce

Create a command with nsfw set to true
Create a channel with nsfw set to false
Change the Age Restricted Server setting in the access tab of server settings to true
Attempt to run the nsfw command in the channel you created

Expected Behavior

The command resolves and can be used

Current Behavior

The command does not appear in the UI, and cannot be executed

Screenshots/Videos

No response

Client and System Information

stable 459631 (e97e9b1) Host 1.0.9212 x64 (70471) Build Override: N/A Windows 10 64-bit (10.0.19045)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions