Title: API not running automatically
Last modified: October 18, 2023

---

# API not running automatically

 *  Resolved [justinmacmahan](https://wordpress.org/support/users/justinmacmahan/)
 * (@justinmacmahan)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/api-not-running-automatically/)
 * When users cancel their paid membership, the Discord roles that come with that
   membership are supposed to automatically be removed when their membership expires.
   I’m finding that sometimes that doesn’t happen, and I have to go manually run
   the API to get them removed. The problem, of course, is that I often don’t notice
   every person this happens to. I’ve had some users steal multiple months of free
   access because of this glitch. How do I ensure that the API runs every so often
   to catch and remove these people? I understand a webhook should be triggering
   the API when the subscription expires, but somehow that isn’t working 100% of
   the time and that’s an issue. Is there a way to set the APIs to run automatically
   like once a week to ensure this doesn’t keep happening?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mlasupport](https://wordpress.org/support/users/mlasupport/)
 * (@mlasupport)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/api-not-running-automatically/#post-17398048)
 * I have the same issue here, subscription cancelled and membership is inactive,
   but member still has role in discord.
 *  [mnin](https://wordpress.org/support/users/mnin/)
 * (@mnin)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/api-not-running-automatically/#post-17441535)
 * Same… until I press “Run API” manually there is no change of roles happening 
   in discord.
 *  Plugin Contributor [Younes](https://wordpress.org/support/users/vanbom/)
 * (@vanbom)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/api-not-running-automatically/#post-17452862)
 * Our plugin doesn’t currently support real-time updates for Discord roles due 
   to the API call to Discord, which can take some time to process. While the bot
   functions effectively for smaller servers, we understand the importance of timely
   role updates and are actively exploring solutions to improve this aspect. 
   Thank
   you for your understanding.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘API not running automatically’ is closed to new replies.

 * ![](https://ps.w.org/expresstechsoftwares-memberpress-discord-add-on/assets/icon-
   256x256.gif?rev=3123054)
 * [ExpressTechSoftwares Addon for MemberPress and Discord](https://wordpress.org/plugins/expresstechsoftwares-memberpress-discord-add-on/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/expresstechsoftwares-memberpress-discord-add-on/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/expresstechsoftwares-memberpress-discord-add-on/)
 * [Active Topics](https://wordpress.org/support/plugin/expresstechsoftwares-memberpress-discord-add-on/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/expresstechsoftwares-memberpress-discord-add-on/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/expresstechsoftwares-memberpress-discord-add-on/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [syncing](https://wordpress.org/support/topic-tag/syncing/)
 * [webhooks](https://wordpress.org/support/topic-tag/webhooks/)

 * 3 replies
 * 4 participants
 * Last reply from: [Younes](https://wordpress.org/support/users/vanbom/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/api-not-running-automatically/#post-17452862)
 * Status: resolved