strinking / statbot

A data ingestion bot that reads records from Discord guilds into a SQL database.
MIT License
22 stars 5 forks source link

Track guild membership #40

Closed emmiegit closed 7 years ago

emmiegit commented 7 years ago

Right now we don't really have a good way of checking if a person is a member of a guild. You can lookup in role_membership when the guild ID matches joining on the roles table to find the @everyone role, but that's a huge pain, and since role information is preserved even for people who leave, it's not totally accurate.

So instead a separate table for tracking guild-specific data should be made.