Testing a new interaction

This commit is contained in:
Bradley Bickford 2023-11-11 15:33:57 -05:00
parent e68272236f
commit 0d15e7931c

View File

@ -60,6 +60,15 @@ client.on(Events.InteractionCreate, async interaction => {
}
});
client.on(Events.GuildCreate, async guild => {
if (guild.available) {
console.log('Got into a server')
console.log(`The server name is ${guild.name}`)
console.log(`The server description is ${guild.description}`)
console.log(`The server snowflake is ${guild.id}`)
}
})
client.once(Events.ClientReady, c => {
console.log(`Ready! Logged in as ${c.user.tag}`);
});