#A little Help
12 messages · Page 1 of 1 (latest)
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 
Represents a embed in a message (image/video preview, rich embed, etc.)
...looks like he's deleted everything
!close