#A little Help

12 messages · Page 1 of 1 (latest)

tame gale
#

have you tried adding the footer to the object in the EmbedBuilder parameter?

#
import { Client, EmbedBuilder } from "discord.js";

interface Locales {
    getSubValue(...args: string[]): string;
    getSubRawValue(path: string): unknown;
}

class C {
    client!: Client<true> & { locales: Locales };

    public f() {
        const locale = this.client.locales;
        let footer = locale.getSubValue("embeds", "openTicket", "footer", "text").replace("Happy Store", "");

        footer = `Happy Store ${footer.trim() !== "" ? `- ${footer}` : ""}`;

        const embed = new EmbedBuilder({
            ...locale.getSubRawValue("embeds.openTicket") as object,
            footer: { text: footer },
            color: 0,
        });

        // ...
    }
}
#

adding the footer: { text: footer }, should be enough

#

but you've barely given any information to work with, so yeah

#

make sure you restarted the bot

#

and that the embed comes from right instance (maybe your friend is running the bot too, and his code replied, not yours, idk)

#

have you checked the docs?

#

then do Catto

#

Google

mellow depot
#

...looks like he's deleted everything

rugged dock
#

!close