Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Nested attributes are not passed down to commands #2875

Open
3 tasks done
matthewzring opened this issue Mar 13, 2024 · 0 comments
Open
3 tasks done

[Bug]: Nested attributes are not passed down to commands #2875

matthewzring opened this issue Mar 13, 2024 · 0 comments

Comments

@matthewzring
Copy link

Check The Docs

  • I double checked the docs and couldn't find any useful information.

Verify Issue Source

  • I verified the issue was caused by Discord.Net.

Check your intents

  • I double checked that I have the required intents.

Description

Defining the EnabledInDm attribute at the highest level class still allows commands inside the module to be executed in DMs.

Version

3.13.1

Working Version

No response

Logs

N/A

Sample

[EnabledInDm(false)]
public class PingModule : InteractionModuleBase<SocketInteractionContext>
{
    [SlashCommand("ping", "check if the bot is online")]
    public async Task PingAsync()
    {
        await RespondAsync("Pong!");
    }
}

Packages

N/A

Environment

  • OS: Windows 11
  • Architecture: x64
  • SDK: .NET 8.0.200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants