🧑💻 Fixed some code smells
This commit is contained in:
parent
8b5dc9d51b
commit
0a3be3c5f0
2 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { ChannelType, Message } from "discord.js";
|
import { ChannelType, Message } from "discord.js";
|
||||||
import * as cooldown from "../../../../../helpers/cooldown";
|
import * as cooldown from "../../../../../helpers/cooldown";
|
||||||
import fetchGuild from "../../../../../helpers/fetchGuild";
|
import fetchGuild from "../../../../../helpers/guildData";
|
||||||
import fetchUser from "../../../../../helpers/userData";
|
import fetchUser from "../../../../../helpers/userData";
|
||||||
import logger from "../../../../../middlewares/logger";
|
import logger from "../../../../../middlewares/logger";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { ChannelType, Message } from "discord.js";
|
import { ChannelType, Message } from "discord.js";
|
||||||
import * as cooldown from "../../../../../helpers/cooldown";
|
import { message as CooldownMessage } from "../../../../../helpers/cooldown";
|
||||||
import fetchGuild from "../../../../../helpers/fetchGuild";
|
import fetchGuild from "../../../../../helpers/guildData";
|
||||||
import fetchUser from "../../../../../helpers/userData";
|
import fetchUser from "../../../../../helpers/userData";
|
||||||
import logger from "../../../../../middlewares/logger";
|
import logger from "../../../../../middlewares/logger";
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ export default {
|
||||||
|
|
||||||
if (content.length < guildData.credits.minimumLength) return;
|
if (content.length < guildData.credits.minimumLength) return;
|
||||||
|
|
||||||
const isOnCooldown = await cooldown.message(
|
const isOnCooldown = await CooldownMessage(
|
||||||
message,
|
message,
|
||||||
guildData.credits.timeout,
|
guildData.credits.timeout,
|
||||||
"messageCreate-points"
|
"messageCreate-points"
|
||||||
|
|
Loading…
Add table
Reference in a new issue