Skip to content

Conversation

@MrProSpectrumPT
Copy link

No description provided.

const content = userId ? `<@${userId}>` : undefined;

const embed = new EmbedBuilder()
.setTitle("🚫 Canal Exclusivo para Programação")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really Canal Exclusivo but rule of thumb is that the entire server is for programming or programming related topics

Title should follow the description

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup you're right, i need to change that part

const userId = mentionedUser?.id || userIdMatch?.[1] || userIdMatch?.[2];
const content = userId ? `<@${userId}>` : undefined;

const embed = new EmbedBuilder()
Copy link
Contributor

@diomonogatari diomonogatari Sep 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image embeds are overkill imo.

We normally use this command when someone joins and starts asking if someone can help them with some PC problem or GTA Cheat or whatever.

If you want to think of a styling improvement, maybe markdown in the message body would be enough

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes Markdown is another easy solution, i usually use embeds because you can input footers and/or icons on them, i usually produce hundreds of them and they are not THAT heavy, but they are simple to edit and manipulate
The idea was to get rid of simple texting, which can introduce ping flaws, but Markdown also solves it yes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding !oc @someUserToBeMentioned would be a lukewarm feature but I can see some general value in case the chat is too long already.

Maybe it's a nice-to-have and nice-to-have's aren't that problematic for this community-based bot.

As for the embed, shouldn't be a problem as long as it doesn't occupy a lot of the user-space.

Just my 2 cents. I'm not a maintainer, just a casual contributor

async sendEmbedToChannel(embed: EmbedBuilder, channelId: string, content?: string): Promise<void> {
const channel = await this.client.channels.fetch(channelId);

if (!channel || !channel.isTextBased()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's code duplication in l.20-22 and l.10-12

Could improve with a function that always returns a TextChannel or throws an Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants