Closed schlopp closed 3 years ago
permissions: Optional[List[str]] = []
would be pretty hot
Example:
x.create_cog(bot, permissions=['manage_messages']
> cog can only be used by people with the manage_messages
perm
Cool thank you that's just something I missed. I'd prefer it to be a manage guild permission if you want to PR it in, but if not then I'll do that later today. I'll grandfather it in to a 0.5.10 release so you don't need to wait for a 0.6 release, though you can create your own cog and command and use settings_menu.start(ctx)
in it.
oh I didn't read the second message that would be very good
Currently
menus.Menu.create_cog
doesn't support owner only cogs. This creates some VERY bad bugs (I am not supposed to be able to use this): I think aowner_only: Optional[bool] = False
arg formenus.Menu.create_cog
would be pretty hot