Giter Club home page Giter Club logo

Comments (7)

issue-label-bot avatar issue-label-bot commented on July 21, 2024 8

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.62. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from bot.

MichaelYogar avatar MichaelYogar commented on July 21, 2024 1

Hi, if this is still an issue I can give this a go!

from bot.

NamVr avatar NamVr commented on July 21, 2024

Hello! I want to contribute, what should I do?

from bot.

eartharoid avatar eartharoid commented on July 21, 2024

If you think you know how to do this well you can submit a PR with your solution. The bot still needs to set channel permissions, but not completely delete the permissions that would otherwise be inherited from the category channel.

from bot.

eartharoid avatar eartharoid commented on July 21, 2024

Thanks :)

from bot.

eartharoid avatar eartharoid commented on July 21, 2024

Better explanation in PR #58 comment:

That's not quite what I meant... although to be fair I didn't explain it brilliantly before. The bot still needs to ensure that those overwrites are set but whilst respecting other permissions from the parent category. So the channel should be created with the same overwrites as the category, which should allow the bot and staff, and disallow everyone, but the new channel should be edited after creation to add allow permissions for the ticket creator. If the category doesn't already have the required overwrites it should be modified to set them, but without removing existing overwrites for other permissions/members/roles.

Example:

* Category allows admins and staff and disallows everyone

* Before the ticket is created the bot checks the category permissions. The bot doesn't have read and write permissions so updates the category

* The bot creates the new channel without any overwrites, so it inherits the permissions from the category

* The bot edits the new channel so the ticket creator can read and write (and read history, upload files etc)

Also, any change made to ticket creation in src/commands/new.js also needs to be updated in src/events/messageReactionAdd.js.

from bot.

eartharoid avatar eartharoid commented on July 21, 2024

soon ™️

from bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.