feat: Add slashcommand api

This commit is contained in:
2026-06-05 17:12:26 +02:00
parent 4070ef6caf
commit 8ecfc9a1fe
101 changed files with 3526 additions and 147 deletions
@@ -1,7 +1,4 @@
import {
Injector,
runInInjectionContext
} from '@angular/core';
import { Injector, runInInjectionContext } from '@angular/core';
import {
beforeEach,
describe,
@@ -35,10 +32,12 @@ describe('DatabaseService', () => {
getBansForRoom: vi.fn(() => Promise.resolve([])),
initialize: vi.fn(() => Promise.resolve())
};
capacitorDatabase = {
getBansForRoom: vi.fn(() => Promise.resolve([])),
initialize: vi.fn(() => Promise.resolve())
};
electronDatabase = {
getBansForRoom: vi.fn(() => Promise.resolve([])),
initialize: vi.fn(() => Promise.resolve())
@@ -135,7 +135,9 @@ export class DatabaseService {
saveReaction(reaction: Reaction) { return this.withReady(() => this.backend.saveReaction(reaction)); }
/** Remove a specific reaction (user + emoji + message). */
removeReaction(messageId: string, userId: string, emoji: string) { return this.withReady(() => this.backend.removeReaction(messageId, userId, emoji)); }
removeReaction(messageId: string, userId: string, emoji: string) {
return this.withReady(() => this.backend.removeReaction(messageId, userId, emoji));
}
/** Return all reactions for a given message. */
getReactionsForMessage(messageId: string) { return this.withReady(() => this.backend.getReactionsForMessage(messageId)); }