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

Fix of app command example (slash_options) #1154

Closed
wants to merge 2 commits into from

Conversation

martinbndr
Copy link
Contributor

Summary

Fix for the app command example (slash_options).
When creating a slash command option for being able to select different channel types like discord.Textchannel and discord.Voice channel the current example raises this error or similar:

Extension 'cogs.info' raised an error: AttributeError: 'list' object has no attribute '__name__'

I replaced these brackets [] to these one: () in order to fix that issue.

Checklist

  • If code changes were made then they have been tested.
    • [] I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, typehinting, examples, ...)

Copy link
Member

@ChickenDevs ChickenDevs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to fix the comment as well.

@Dorukyum
Copy link
Member

This is a duplicate of #1054 and it will be fixed by #1000.

@martinbndr
Copy link
Contributor Author

Oh sorry, done! :)

@ChickenDevs
Copy link
Member

Closing as duplicate of #1054.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants