mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 10:01:21 +01:00
15 lines
511 B
Python
15 lines
511 B
Python
from titanembeds.database import db
|
|
|
|
class DisabledGuilds(db.Model):
|
|
__tablename__ = "disabled_guilds" # Auto increment id
|
|
guild_id = db.Column(db.BigInteger, nullable=False, primary_key=True) # Server id that is disabled
|
|
|
|
def __init__(self, guild_id):
|
|
self.guild_id = guild_id
|
|
|
|
def list_disabled_guilds():
|
|
q = db.session.query(DisabledGuilds).all()
|
|
their_ids = []
|
|
for guild in q:
|
|
their_ids.append(str(guild.guild_id))
|
|
return their_ids |