1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 17:51:35 +02:00

Update Guild.ts

This commit is contained in:
Erkin Alp Güney 2022-01-12 10:19:05 +03:00 committed by GitHub
parent 4baa6e0620
commit 26781e736c

View File

@ -330,6 +330,7 @@ export class Guild extends BaseClass {
}).save();
// we have to create the role _after_ the guild because else we would get a "SQLITE_CONSTRAINT: FOREIGN KEY constraint failed" error
// TODO: make the @everyone a pseudorole that is dynamically generated at runtime so we can save storage
await new Role({
id: guild_id,
guild_id: guild_id,