You can block hubix_1234 out from your server in some channels (and other members too)! By blocking them, you also unlock the ability to get the most information about a user that can be retrieved through an app authorization. And it stays forever. For a long time. In a text file.
Caution
I'm interested in adding support for scopes dm_channels.messages.write and dm_channels.messages.read. Make a pull request if someone knows how to use it.
To use it simply npm install and then node hubix-blocker.mjs.
REMEMBER TO ADD A CONFIG TO config.json OR THE BOT WILL THROW ERRORS!
Example config:
{
"disallowHubixAt": [ "channels where you don't want hubix here", "another channel", "yet another channel" ],
"discordToken": "put your discord bot token here",
"clientid": "put your client id from discord developer portal",
"clientsecret": "put your client secret from discord developer portal",
"predefinedUsers": ["right-click and then copy id, hubix id: 1276266440789463141"],
"redirectUrl": "put here the exact link from oauth2 link generator in discord. use scopes like identity, email, connections, guilds",
"discordRedirect": "set this to a public callback url of this server like https://siema.trycloudflare.com/callback if you don't have a hosting use `cloudflared tunnel --url localhost:3000`"
}
If you don't know how to still format this config to your needs, ask AI for help with JSON and paste this example snippet.