cameroncros / OctoPrint-DiscordRemote

Discord plugin for OctoPrint
MIT License
66 stars 34 forks source link

Roles Permissions #185

Closed Bradly7412 closed 2 years ago

Bradly7412 commented 3 years ago

I am wondering if it is possible to use roles for permissions instead of just UesrIDs.

cameroncros commented 3 years ago

Currently, no, it's user IDs only. but it wouldn't be too hard for someone to add that feature in.

Bradly7412 commented 3 years ago

were would we be able to find the file to add the Role permissions?

cameroncros commented 3 years ago

https://www.github.com/cameroncros/OctoPrint-DiscordRemote/tree/master/octoprint_discordremote%2Fcommand.py

Look for the check_perms() function. It would likely require a bit of manual testing to work out what info about a user you can get.

On Mon, 29 Mar 2021, 1:46 pm Bradly7412, @.***> wrote:

were would we be able to find the file to add the Role permissions?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/185#issuecomment-809027915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7FLYJ3HPG26SNFHMMECDTF7SZFANCNFSM4Z6WWTHA .

CanOfSomething commented 3 years ago

Hi im currently working with Bradly7412 to get roles to work instead Is there a way we can contact you to help us troubleshoot any problems?

cameroncros commented 3 years ago

I have a development discord here: https://discord.gg/znhGpkzp

On Mon, Mar 29, 2021 at 7:24 PM cOOM9009 @.***> wrote:

Hi im currently working with Bradly7412 to get roles to work instead Is there a way we can contact you to help us troubleshoot any problems?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/185#issuecomment-809179136, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7FL2IAD43M7R6L7SBV3DTGA2MVANCNFSM4Z6WWTHA .

Bradly7412 commented 3 years ago

@cameroncros Sorry for the huge delay but it would seem that the discord Invite that you have sent is invalid so am i able to receive another invite?

cameroncros commented 3 years ago

https://discord.gg/bUTHJdBr <- expires after 7 days

On Thu, Apr 22, 2021 at 11:41 AM Bradly7412 @.***> wrote:

@cameroncros https://github.com/cameroncros Sorry for the huge delay but it would seem that the discord Invite that you have sent is invalid so am i able to receive another invite?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/185#issuecomment-824473445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7FL2EJMQCV4FHA7XMBPDTJ55DPANCNFSM4Z6WWTHA .