🔇 unnessecery logging removed
This commit is contained in:
parent
255235630d
commit
834a67b3f1
2 changed files with 0 additions and 10 deletions
|
@ -2,7 +2,6 @@ import { Guild } from "discord.js";
|
||||||
import fetchGuild from "../../../helpers/guildData";
|
import fetchGuild from "../../../helpers/guildData";
|
||||||
import updatePresence from "../../../helpers/updatePresence";
|
import updatePresence from "../../../helpers/updatePresence";
|
||||||
import { IEventOptions } from "../../../interfaces/EventOptions";
|
import { IEventOptions } from "../../../interfaces/EventOptions";
|
||||||
import logger from "../../../middlewares/logger";
|
|
||||||
|
|
||||||
export const options: IEventOptions = {
|
export const options: IEventOptions = {
|
||||||
type: "on",
|
type: "on",
|
||||||
|
@ -11,10 +10,6 @@ export const options: IEventOptions = {
|
||||||
export const execute = async (guild: Guild) => {
|
export const execute = async (guild: Guild) => {
|
||||||
const { client } = guild;
|
const { client } = guild;
|
||||||
|
|
||||||
logger?.silly(`Added to guild: ${guild.name} (${guild.id})`);
|
|
||||||
|
|
||||||
await fetchGuild(guild);
|
await fetchGuild(guild);
|
||||||
await updatePresence(client);
|
await updatePresence(client);
|
||||||
|
|
||||||
logger.silly(`guildCreate: ${guild}`);
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,6 @@ import { Guild } from "discord.js";
|
||||||
import dropGuild from "../../../helpers/deleteGuildData";
|
import dropGuild from "../../../helpers/deleteGuildData";
|
||||||
import updatePresence from "../../../helpers/updatePresence";
|
import updatePresence from "../../../helpers/updatePresence";
|
||||||
import { IEventOptions } from "../../../interfaces/EventOptions";
|
import { IEventOptions } from "../../../interfaces/EventOptions";
|
||||||
import logger from "../../../middlewares/logger";
|
|
||||||
|
|
||||||
export const options: IEventOptions = {
|
export const options: IEventOptions = {
|
||||||
type: "on",
|
type: "on",
|
||||||
|
@ -13,10 +12,6 @@ export const options: IEventOptions = {
|
||||||
export const execute = async (guild: Guild) => {
|
export const execute = async (guild: Guild) => {
|
||||||
const { client } = guild;
|
const { client } = guild;
|
||||||
|
|
||||||
logger?.silly(`Deleted from guild: ${guild.name} (${guild.id})`);
|
|
||||||
|
|
||||||
await dropGuild(guild);
|
await dropGuild(guild);
|
||||||
await updatePresence(client);
|
await updatePresence(client);
|
||||||
|
|
||||||
logger.silly(`guildDelete: ${guild}`);
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue