begin rewriting first services to be domain agnostic

more rewrites
This commit is contained in:
2026-02-17 22:42:36 +01:00
parent b3766b9584
commit 071fe2f891
45 changed files with 915 additions and 521 deletions

View File

@@ -0,0 +1,18 @@
import { config } from "config";
import { Routes } from "discord.js";
import getCommands from "entitites/commands";
import { discordRestClient } from "lib/rest-client";
export const publishCommands = async () => {
try {
await discordRestClient.put(
Routes.applicationCommands(config.discord.applicationId),
{
body: getCommands(),
},
);
console.log("Successfully added commands");
} catch (e) {
console.error(e);
}
};