commit
This commit is contained in:
parent
8a23e86b12
commit
f6e5d49159
4 changed files with 57 additions and 6 deletions
|
@ -1,11 +1,11 @@
|
|||
import { Events, Guild } from "discord.js";
|
||||
import { connectToDb, getguild, addGuild } from "../libs/mysql.js";
|
||||
import { connectToDb, getGuild, addGuild } from "../libs/mysql.js";
|
||||
|
||||
export default {
|
||||
name: Events.GuildCreate,
|
||||
async execute(guild: Guild) {
|
||||
const connection = await connectToDb();
|
||||
const guild_obj: any[] = await getguild(connection, guild.id);
|
||||
const guild_obj: any[] = await getGuild(connection, guild.id);
|
||||
|
||||
connection.end()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue