diff --git a/src/commands/misc/status.ts b/src/commands/misc/status.ts index 7f3dc2e..1717883 100644 --- a/src/commands/misc/status.ts +++ b/src/commands/misc/status.ts @@ -1,7 +1,7 @@ import { SlashCommandBuilder } from "discord.js"; import { Command } from "../../lib/command"; import { Embeds } from "../../utils/embeds"; -import { Style } from "../../utils/style"; +import * as Style from "../../utils/style"; import Time from "../../utils/time"; const startup = Date.now(); diff --git a/src/utils/embeds.ts b/src/utils/embeds.ts index c579700..38f6b02 100644 --- a/src/utils/embeds.ts +++ b/src/utils/embeds.ts @@ -1,6 +1,6 @@ import { EmbedBuilder } from "@discordjs/builders"; import { CacheType, CommandInteraction, Message } from "discord.js"; -import { Style } from "./style"; +import * as Style from "./style"; type SendEmbed = { send: (interaction: CommandInteraction) => Promise> }; type EmbedBuilderWithSend = EmbedBuilder & SendEmbed; @@ -8,6 +8,7 @@ type EmbedBuilderWithSend = EmbedBuilder & SendEmbed; export namespace Embeds { export const create = (): EmbedBuilderWithSend => { + // I don't know if this is cool or messy, I like it though let embed = new EmbedBuilder() .setColor(Style.Color.DEFAULT) .setTimestamp() diff --git a/src/utils/style.ts b/src/utils/style.ts index 70c98d6..c96371c 100644 --- a/src/utils/style.ts +++ b/src/utils/style.ts @@ -1,13 +1,11 @@ import { Colors } from "discord.js"; -export namespace Style { - export namespace Color { - export const DEFAULT = Colors.Yellow; - export const ERROR = Colors.Red; - } - - export const NAME = "BarbarianBot"; - export const ENGINE_VERSION = "Barbarian v2"; - export const VERSION = "2.0"; - export const PROFILE_URL = "https://cdn.discordapp.com/avatars/937850544255545394/dfa825b8b7cb035ef2577d847c22326e?size=1024" // https://i.imgur.com/risXNrf.png +export namespace Color { + export const DEFAULT = Colors.Yellow; + export const ERROR = Colors.Red; } + +export const NAME = "BarbarianBot"; +export const ENGINE_VERSION = "Barbarian v2"; +export const VERSION = "2.0"; +export const PROFILE_URL = "https://cdn.discordapp.com/avatars/937850544255545394/dfa825b8b7cb035ef2577d847c22326e?size=1024" // https://i.imgur.com/risXNrf.png \ No newline at end of file