discord-modmail / modmail

A Modmail bot for Discord. Allowing safe moderator conversations with server members one server at a time.
https://discord-modmail.readthedocs.io/
MIT License
15 stars 8 forks source link

[tickets/threads] Dm system to relay messages from dms and back again #52

Closed onerandomusername closed 2 years ago

onerandomusername commented 3 years ago

Is there an existing issue for this?

What is the feature?

Overview

Implement a system that will create a thread on dm, and allow users to dm back and forth. As of now, it is fine to not add events to a database, but the methods to update the database should be made.

Ex

async def log_message(...):
   pass

In addition, places where the dispatch system will be called should be noted with comments, and some behavior (like must the event pass) should be handled, if possible.

Once the database exists, we can add the methods for that well.

Commands

Note: all of these commands will need to be configurable to a provided role list or permissions list at a later point in time.

  • reply: only usable in a ticket channel
  • close: only usable in a ticket channel. By default, only members who have Manage Thread permission
  • open: open a thread with a member, by default only usable by members who have manage thread permissions in the modmail_threads channel

Implementation details

Would you like to implement this yourself?

Yes, I'd like to implement this