KillStr3aK / discord-api

SourceMod Discord API with minimal dependency.
GNU General Public License v3.0
9 stars 2 forks source link

Would it be possible to check if users have boost discord? #3

Open crashzk opened 2 years ago

crashzk commented 2 years ago

@KillStr3aK first thanks for sharing this resource, having said that i would like to ask a question about this API.

I'm looking for a CSGO plugin that works with Discord, its function would be to check the players on the CSGO server and check my Discord server, if Discord users have boosted my discord it will receive VIP on my CSGO servers. In this case, I intend to make it compatible with the VIP Core, thus making it easier to give VIP to the players.

I would like to know if your API currently has a way to do this check? If not, would this be possible to implement or not?

I currently use this other Discord API, but from what I've seen it only sends messages.

KillStr3aK commented 2 years ago

Currently there is no callbacks for retrieving any data from the rest API but that's the next thing in the todo list, also some pre-work is already done towards this.

According to the Discord Developer Portal, as soon as I'm done with the callbacks, you will be able to determine if the given DiscordGuildUser is boosting the server or not using these:

I'm not sure if these will work as intended since Discord changed the boosting behaviour recently to display the longest boosting date but according to their docs, it will return the datetime when the user has started boosting the given guild.

crashzk commented 2 years ago

Thanks for the feedback.

Perfect, I'll start to see the plugin and start preparing everything, and I look forward to future updates.

In fact, I'll leave a request here, if you accept private requests, would it be possible for you to make this plugin I mentioned? We can talk to reach a good value for both sides.

KillStr3aK commented 2 years ago

Yes I will be able to make the plugin you mentioned. I leave this issue open as long as I'm working on the required parts of the API then I'll reach out to you to discuss this further.

crashzk commented 2 years ago

Hi, just for registration. I'm still interested, as soon as you have time, just get in touch.