rlapostolle / mindbot

MIT License
4 stars 1 forks source link

Create a Edit Command #9

Closed TheMBeat closed 1 year ago

TheMBeat commented 1 year ago

Input: Name

Only the Author from a card should be able to edit the Data

TheMBeat commented 1 year ago

Possible Solution:

  1. Use the CreateCreatureCommand as Template (copy & paste)
  2. Change Input-Args
  3. Fetch Date from DB with the given name
  4. Check if the author == Command caller 4.1 False -> Edit not allowed Message 4.2. Message with Edit Dialog and Embed filled with the Data from DB