How can I check if someone has voted for my discord bot in dblpy?

Viewed 1880

My discord bot recently got accepted to top.gg, but I can't properly wrap my head around the documentation for dblpy. How can I check if someone has voted for my bot in the past 12hr to use certain commands? I would appreciate if anyone could help, because im not even sure how to connect to the API. Thanks everyone.

1 Answers
@commands.Cog.listener()
async def on_dbl_vote(self, data):
    user = data['user']
    embed = discord.Embed(description="New Vote! Voter: {}".format(user))
    channel = self.bot.get_channel(int(ID))
    await channel.send(embed=embed)
Related