refactor: squash branch changes

This commit is contained in:
Hampus Kraft
2026-02-21 07:15:46 +00:00
parent c2b69be17d
commit d90464c381
153 changed files with 6598 additions and 4444 deletions

View File

@@ -17,7 +17,6 @@
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
import {ManagedTraits} from '@fluxer/constants/src/ManagedTraits';
import type {ValueOf} from '@fluxer/constants/src/ValueOf';
export const GuildVerificationLevel = {
@@ -123,8 +122,6 @@ export const GuildFeatures = {
OPERATOR: 'OPERATOR',
LARGE_GUILD_OVERRIDE: 'LARGE_GUILD_OVERRIDE',
VERY_LARGE_GUILD: 'VERY_LARGE_GUILD',
MANAGED_MESSAGE_SCHEDULING: ManagedTraits.MESSAGE_SCHEDULING,
MANAGED_EXPRESSION_PACKS: ManagedTraits.EXPRESSION_PACKS,
} as const;
export type GuildFeature = ValueOf<typeof GuildFeatures>;

View File

@@ -1,35 +0,0 @@
/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
import type {ValueOf} from '@fluxer/constants/src/ValueOf';
export const MANAGED_TRAIT_PREFIX = 'MT_';
export const ManagedTraits = {
MESSAGE_SCHEDULING: 'MT_MESSAGE_SCHEDULING',
EXPRESSION_PACKS: 'MT_EXPRESSION_PACKS',
} as const;
export type ManagedTrait = ValueOf<typeof ManagedTraits>;
export const ALL_MANAGED_TRAITS: Array<ManagedTrait> = Object.values(ManagedTraits);
export function isManagedTrait(value: string): value is ManagedTrait {
return value.startsWith(MANAGED_TRAIT_PREFIX);
}