mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 09:12:07 +02:00
Fix Shard POSTing
This commit is contained in:
@@ -95,7 +95,6 @@ client.on('guildMemberRemove', member => {
|
||||
|
||||
client.on('guildCreate', guild => {
|
||||
console.log("[Guild] I have joined the guild: " + guild.name + " (" + guild.id + ")...");
|
||||
if(client.shard.id !== 0) return;
|
||||
client.shard.fetchClientValues('guilds.size').then(results => {
|
||||
console.log("[POST] " + results.reduce((prev, val) => prev + val, 0));
|
||||
const carbonPOST = {
|
||||
@@ -132,7 +131,6 @@ client.on('guildCreate', guild => {
|
||||
});
|
||||
|
||||
client.on('guildDelete', guild => {
|
||||
if(client.shard.id !== 0) return;
|
||||
console.log("[Guild] I have left the guild: " + guild.name + " (" + guild.id + ")...");
|
||||
client.shard.fetchClientValues('guilds.size').then(results => {
|
||||
console.log("[POST] " + results.reduce((prev, val) => prev + val, 0));
|
||||
|
||||
Reference in New Issue
Block a user