Discord rewrite in version 2.3.5
About two months ago we added an integration with discord. This integration was not supposed to be really big, but we added a lot of features into that one modules, which was really hard to update or edit anything afterwards. That being said, in our next release we’ve done a complete rewrite of the discord module and now every modules for discord will be in its own folder. This will make it easier for us and other users to add their own custom modules for discord. But sadly, with this rewrite every setting name changed location, this mean that all of your current settings for discord will not be compatible as of version 2.3.5. Once you update they will all be deleted and replaced with the new default ones that can be changed either via the discord commands (you can type
!botcommandsto get that list) or the web panel. Yes, we did add most of the discord setting to our web panel to make it easier for our users to set everything up. As of right now it mostly has the same feature with a few new ones, like greetings, moderation, and game change alerts.
We hope that you guys will enjoy it and we are really hyped to be releasing our new version of the bot!
Please see https://docs.phantombot.tv/kb/discord if you want to setup the discord module.
Nice one! Still, now I got two questions:
- is the moderation feature linked to the settings of Twitch chat moderation or are they controlled separately?
- Will there be a feature of rank/role syncing? So, if a user becomes a certain rank in Twitch chat, he gets a special role in Discord?
@Der-Molybdäne We don’t have a good way to tell between a twitch name and a discord name is the same person.
What about this one?
There’s no data in there that lets us know what your twitch account is.
Ah ok, I thought so, because it tells that it returns a connection object and said object includes “the username of the connection account” and “the service of the connection (twitch, youtube)”.
So, isn’t it possible to use this, and if the service is Twitch you can read the Twitch username? I see it only works when the user links the Discord and the Twitch account by himself, still there is a name and a service. Or am I wrong? I don’t understand much of programming, that’s why I ask
I’ll double check.
@Der-Molybdäne The data is private so it couldn’t be accessed by the bot for point or time use.
@PhantomIndex With “the data is private”, do you mean there is no way to get this, or there just is no way for the bot to get this?
I don’t know what Discord will call with this “Get Connections” thing, but Twitch has a user info funtion, too:
The bot at this time has two OAuth tokens, one for the Discord API, one for the Twitch API, right?
So maybe you first can ask Discord with its token, what user ID the Twitch connection of this user has, then you can doublecheck the name of the user from Twitch with the function above?
Or maybe Discord directly can tell you the name when called if you add the Twitch token somehow to the call? At least in the Discord docs it tells “Requires the connections OAuth2 scope.” and how I see it, the Twitch call above lies within this scope, doesn’t it?
I am no programmer, but that’s what I see, so I ask, maybe that topic of profile syncing bothers you, too, so I just try to help by research
@Der-Molybdäne that’s the twitch API. There’s no way for us to get a users twitch username from discord same from twitch. You need to specify the user id from twitch, not discord to call that API, which would not be needed for this feature
I’ve looked into getting this info but it’s not possible.