#Help me
1 messages · Page 1 of 1 (latest)
hi?
Can u help me?
what happen?
.
elobrate
I want to put a picture in the panel like :
hm use mediagallery
How
in help menu
Do I need to modify the code?
yeh
So idk how 🤷🏻
Should I give him the help file and tell him I want to put a picture in the panel?
hm yeh
exactly
it will help
Thank you, I will try it.
hm yeh!
The one?
yeh

you jst need help image on that ryt?
No, in the ticket panel that appears to members
No command named menu found.

It's like this, but slightly bigger and above the Select Menu.
@flat junco So, can you do it?

@languid tulip
What exactly do you need help with, elaborate
I want to place an image inside the panel that members can see.
so, what's wrong?
Put it
It's not that easy.
Yes
!
..

open the code now
This doesn't appear to be a ticket thread.
Send the panel cmd
?
_buildPanel(panel, cats) {
const c = new ContainerBuilder();
const title = panel.panelMessage?.title || "Ticket Panel";
const description =
panel.panelMessage?.description ||
` ${emoji.ticket} Select a category below to create a ticket`;
c.addTextDisplayComponents(
new TextDisplayBuilder().setContent(`## ${title}`)
);
c.addSeparatorComponents(
new SeparatorBuilder()
.setSpacing(SeparatorSpacingSize.Small)
.setDivider(true)
);
c.addTextDisplayComponents(
new TextDisplayBuilder().setContent(description)
);
c.addSeparatorComponents(
new SeparatorBuilder()
.setSpacing(SeparatorSpacingSize.Small)
.setDivider(true)
);
c.addMediaGalleryComponents(
new MediaGalleryBuilder().addItems(
new MediaGalleryItemBuilder()
.setURL("boom" )
)
);
const opts = cats.map(cat => ({
label: cat.name.substring(0, 100),
value: cat.categoryId,
emoji: cat.emoji || emoji.ticket,
description: cat.description?.substring(0, 100) || undefined
}));
c.addActionRowComponents(
new ActionRowBuilder().addComponents(
new StringSelectMenuBuilder()
.setCustomId("ticket_create")
.setPlaceholder(
panel.selectMenuConfig?.placeholder ||
"Select a ticket category"
)
.addOptions(opts)
)
);
return c;
}
@sturdy wind
Replace ur buildpanel function with this (scroll to end of panel cmd)
And replace "boom" with ur image url
MediaGalleryBuilder,
MediaGalleryItemBuilder,
Make sure to add these to imports
Or lemme edit it for you
@sturdy wind
Here you go
Line 841 replace boom with ur image url
I might add customisable image in future
Till then use this workaround
Tysm
