Hi, I wanted to make some ignore commands for my discord bot. Which ignores the usage of command. I want to make these commands:
?ignore <command/module/all> [channel]
?ignore bypass <role>
?ignore reset
but how do I store them in my database (PostgreSQL by NeonTech)? Should I store it in json? example:
ignore(guild_id BIG_INT, json_data TEXT)```
Value for GUILD_ID: `000000000000`
Value for JSON_DATA:
```json
{
"all": false,
"command": [{name: channel_id/global},],
"module": [{name: channel_id/global},],
"bypass": [{role_id: channel_id/global}]
}```
I am coding in Python v3.11 in discord.py library.