Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

Edit permissions in bulk by using cog names GH#2900

Open Atharv-Agarwal opened this issue 2 years ago • 3 comments

Resolves #2900, a 2 year old feature request.

Have tested this out properly and ironed out all bugs to my understanding. Attached a few screenshots to help understand better.

image image image image

Atharv-Agarwal avatar Sep 22 '22 16:09 Atharv-Agarwal

Update: One more thing, the group name is case sensitive and sometimes it could be multiple words too, if I remember correctly.

Yeah group name is case sensitive, thats why I take it and put it in first letter capitalized, this should work for all inbuilt cogs. For plugins however, they will need to enter the exact class name if it isnt named as first letter capitalised.

And no, class names cant be more than one word so I dont think the group name can be more than one word!

ghost avatar Sep 23 '22 08:09 ghost

And no, class names cant be more than one word so I dont think the group name can be more than one word!

Yes, class name cannot have multiple words. But cog name could have multiple words (by specifying the name kwarg when creating the class). bot.get_cog will look for cog name instead of class name.

Jerrie-Aries avatar Sep 23 '22 09:09 Jerrie-Aries

Yes, class name cannot have multiple words. But cog name could have multiple words (by specifying the name kwarg when creating the class). bot.get_cog will look for cog name instead of class name.

Cant they just use "cog name" 😕 I feel like to allow more than 1 word cog names will be very difficult.

ghost avatar Sep 23 '22 09:09 ghost