fix(bots/discord): give only removed roles for role presets

This commit is contained in:
PalmDevs
2024-08-23 18:05:48 +07:00
parent 94c4fedc06
commit 522ad28fd8
6 changed files with 47 additions and 25 deletions

View File

@@ -16,6 +16,7 @@ export const appliedPresets = sqliteTable(
{
memberId: text('member').notNull(),
guildId: text('guild').notNull(),
removedRoles: text('roles', { mode: 'json' }).notNull().$type<string[]>().default([]),
preset: text('preset').notNull(),
until: integer('until'),
},