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

Revert "added big todo list to Guild.ts (big chungus)"

This reverts commit 4a63e1560c.
This commit is contained in:
xnacly 2021-09-03 21:36:19 +02:00
parent 4a63e1560c
commit 3aaf4c8a57
3 changed files with 1 additions and 52 deletions

View File

@ -107,7 +107,6 @@ export default function rateLimit(opts: {
}
export async function initRateLimits(app: Router) {
return;
const { routes, global, ip, error } = Config.get().limits.rate;
await listenEvent(EventRateLimit, (event) => {
Cache.set(event.channel_id as string, event.data);

View File

@ -1,14 +0,0 @@
import { Guild } from "@fosscord/util";
import { Router, Request, Response } from "express";
import { In } from "typeorm";
const router = Router();
router.get("/", async (req: Request, res: Response) => {
const { limit } = req.params;
const guilds = await Guild.find({ where: { features: "PENIS" } }); //, take: Math.abs(Number(limit)) });
res.send({ guilds: guilds });
});
export default router;

View File

@ -16,42 +16,7 @@ import { Webhook } from "./Webhook";
// TODO: guild_scheduled_events
// TODO: stage_instances
// TODO: threads
// TODO: description
// TODO: categories:
// [{
// "id": 16,
// "name": {
// "default": "Anime & Manga",
// "localizations": {
// "de": "Anime & Manga",
// "fr": "Anim\u00e9s et mangas",
// "ru": "\u0410\u043d\u0438\u043c\u0435 \u0438 \u043c\u0430\u043d\u0433\u0430"
// }
// },
// "is_primary": false
// }]
// TODO:
// primary_category :{
// id: 1,
// name: {
// default: "Gaming",
// localizations: { de: "Gaming", fr: "Gaming", ru: "\u0418\u0433\u0440\u044b" },
// is_primary: true,
// },
// };
// TODO:
// "keywords": [
// "Genshin Impact",
// "Paimon",
// "Honkai Impact",
// "ARPG",
// "Open-World",
// "Waifu",
// "Anime",
// "Genshin",
// "miHoYo",
// "Gacha"
// ],
export const PublicGuildRelations = ["channels", "emojis", "members", "roles", "stickers", "voice_states"];
@Entity("guilds")
@ -93,7 +58,6 @@ export class Guild extends BaseClass {
@Column({ type: "simple-array" })
features: string[]; //TODO use enum
//TODO: https://discord.com/developers/docs/resources/guild#guild-object-guild-features
@Column({ nullable: true })
icon?: string;