🧑💻 Fixed a code smell
This commit is contained in:
parent
0a3be3c5f0
commit
9b14123a54
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
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/guildData";
|
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";
|
||||||
|
@ -20,7 +20,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-credits"
|
"messageCreate-credits"
|
||||||
|
|
Loading…
Add table
Reference in a new issue