#Help me

1 messages · Page 1 of 1 (latest)

sturdy wind
#

How can I upload a picture?

woeful zephyrBOT
sturdy wind
#

@quartz dune

flat junco
sturdy wind
flat junco
#

what happen?

sturdy wind
flat junco
#

elobrate

sturdy wind
flat junco
sturdy wind
flat junco
sturdy wind
#

Do I need to modify the code?

flat junco
sturdy wind
flat junco
#

better

sturdy wind
# flat junco use gpt

Should I give him the help file and tell him I want to put a picture in the panel?

sturdy wind
flat junco
sturdy wind
flat junco
sturdy wind
flat junco
sturdy wind
flat junco
sturdy wind
flat junco
#

bruh i thught

#

help menu

ashen ermineBOT
#

No command named menu found.

flat junco
#

wtf

sturdy wind
sturdy wind
#

@flat junco So, can you do it?

sturdy wind
sturdy wind
languid tulip
sturdy wind
languid tulip
#

Put it

sturdy wind
sturdy wind
languid tulip
#

You're trying to embed image in

sturdy wind
languid tulip
sturdy wind
languid tulip
sturdy wind
languid tulip
#

Show me the bot menu where you wanna put the image in

#

is it clear?

sturdy wind
#

Do you mean this, or do you mean the code?

languid tulip
ashen ermineBOT
#

This doesn't appear to be a ticket thread.

sturdy wind
quartz dune
sturdy wind
quartz dune
#
_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;
}
quartz dune
#

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
quartz dune
#

@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

sturdy wind
#

Tysm