darrenfoley / Asiago

A Discord bot written in C#
GNU General Public License v3.0
1 stars 0 forks source link

Allow guild owner to perform privileged commands #18

Closed darrenfoley closed 2 months ago

darrenfoley commented 2 months ago

Is your feature request related to a problem? Please describe. Currently when the bot joins a new guild the bot owner needs to set at least the admin role with <command prefix>setadminrole <role> before anyone else can access privileged commands.

Describe the solution you'd like The owner of the guild should be able to perform privileged commands without a role, particularly to aid with setup in a new guild.

Additional context This should be an easy change: modify both Asiago.Commands.Attributes.RequireAdminAttribute and Asiago.Commands.Attributes.RequireModAttribute to check if the user is the guild owner.