diff --git a/controller/guild.ts b/controller/guild.ts new file mode 100644 index 0000000..2bd3722 --- /dev/null +++ b/controller/guild.ts @@ -0,0 +1,7 @@ +import {Guild} from "../models/Guild"; + +/** + * Gets a guild by its id + * @param guildId The guild id to find + */ +export const getGuildById = (guildId: number) => Guild.findOne({where: {guildId}}); \ No newline at end of file