refactor: update message forwarding logic to support channel-based matching alongside role-based matching; enhance configuration structure to include channels; update documentation and example config

This commit is contained in:
devilreef 2026-01-08 22:06:07 +06:00
parent c4514cd4c4
commit 7ed373337f
7 changed files with 97 additions and 22 deletions

View file

@ -10,6 +10,24 @@
{ "id": "111111111111111111", "name": "Developer", "topicId": 5 },
{ "id": "222222222222222222", "name": "Moderator", "topicId": 6 }
]
},
{
"name": "Another Server (channel-based)",
"guildId": "987654321098765432",
"channels": [
{ "id": "333333333333333333", "name": "announcements", "topicId": 7 },
{ "id": "444444444444444444", "name": "dev-updates", "topicId": 8 }
]
},
{
"name": "Mixed Server (both channels and roles)",
"guildId": "555555555555555555",
"channels": [
{ "id": "666666666666666666", "name": "important", "topicId": 9 }
],
"roles": [
{ "id": "777777777777777777", "name": "Staff", "topicId": 10 }
]
}
]
}