Hello, I'm developing a bot. This bot needs to read all messages sent by users from a single specific target channel of servers where the bot will be invited (the target channel will be selected by the owner) .
Now, I can enable MessageContent, and I will receive all messages created in all servers, and of course I can discard the ones that are not from the channel I'm interested in. But it feels a bit a waste of bandwidth... loads of useless messages flooding my server that hosts the bot (just imagine servers which have spam channels lol or spammers in general).
Yet I could just force my users to use a slash command every time they wanna say something... but that's annoying if you are having a conversation, so it's not a very good solution.
I come up with this working solution: if bot is not administrator it can remove its own ViewChannel from all channels but the one target-channel, overriding roles for all other channels. Despite this solution works (I don't receive spam) it has a problem: the bot is unable to change permissions of "blinded" channel. So if the owner decides to change the target channel, the bot won't be able to do that (and make ViewChannel:true for that again). So this solution is not good either.