mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 23:05:04 +02:00
The Power of const
This commit is contained in:
@@ -35,7 +35,7 @@ client.registry
|
||||
client.on('guildCreate', async(guild) => {
|
||||
console.log(`[Guild] I have joined the guild: ${guild.name}, Owned by: ${guild.owner.user.username} (${guild.id})!`);
|
||||
client.guilds.get(config.server).channels.get(config.announcementChannel).send(`I have joined the server: ${guild.name}, Owned by: ${guild.owner.user.username} (${guild.id})!`);
|
||||
let results = await client.shard.fetchClientValues('guilds.size');
|
||||
const results = await client.shard.fetchClientValues('guilds.size');
|
||||
console.log(`[Guild Count] ${results.reduce((prev, val) => prev + val, 0)}`);
|
||||
try {
|
||||
let response = await request
|
||||
@@ -68,7 +68,7 @@ client.on('guildCreate', async(guild) => {
|
||||
client.on('guildDelete', async(guild) => {
|
||||
console.log(`[Guild] I have left the guild: ${guild.name}, Owned by: ${guild.owner.user.username} (${guild.id})...`);
|
||||
client.guilds.get(config.server).channels.get(config.announcementChannel).send(`I have left the server: ${guild.name}, Owned by: ${guild.owner.user.username} (${guild.id})...`);
|
||||
let results = await client.shard.fetchClientValues('guilds.size');
|
||||
const results = await client.shard.fetchClientValues('guilds.size');
|
||||
console.log(`[Guild Count] ${results.reduce((prev, val) => prev + val, 0)}`);
|
||||
try {
|
||||
let response = await request
|
||||
|
||||
Reference in New Issue
Block a user