#Two buttons on two different embeds

1 messages · Page 1 of 1 (latest)

primal belfry
#

i dont even see you declaring a close button anywhere

weary fulcrum
#

so if you want different buttons on different messages then you will have to make different views.
If you mean that you are sending 2 embeds in one message and you want the buttons to be put under different embeds, this is not possible. You would have to send the embeds in seperate messages.

primal belfry
#

pass it as argument

primal belfry
#

man i have no clue what you want

#

because you send it there?

#

change it in your code?

#

you are sending both to the same channel.

#

i also dont quite get how you are only sending a view and nothing else
how does that even look

#

i guess by returning it from the button and somehow catching it in the command

#

not really sure

primal belfry
#

What you want is obviously possible but I can't think of an easy way to do it rn tbh
maybe someone else has an idea

jagged merlin
#

@hollow idol is the ticketsupport command ran in the ticket_channel itself?

#

as u are now sending both views to this channel:

channel = bot.get_channel(1209942541118611538)
#

if its ran inside the ticket channel itself

primal belfry
#

i already told them that lol

jagged merlin
#

you could make a seperate variable to get the channel the command was ran in by doing

current_channel = ctx.channel```
#

ye i dont quite see what he wants

#

and he hasnt made it easy on himself

primal belfry
#

then read up lol

jagged merlin
#

cant figure it out

#

xD

primal belfry
#

What he needs is to somehow get the channel that is made inside the view

#

but im not sure how you can get it out of there

#

actually uh of course

#

@hollow idol make the channel creation button view have a field "channel" that you fill as soon as the channel is made and then read that

jagged merlin
#
@bot.command()
@commands.is_owner()
async def ticketsupport(ctx):
    await ctx.message.delete()
    embed1 = discord.Embed(color=discord.Color.red())
    embed1.set_image(url="http://kryplor.de/toastiiiss/ticketsupport.png")
    embed2 = discord.Embed(title="🎫 ┃ Ticket Support", description="Hier kannst du, falls du Fragen oder Probleme hast oder du dich bewerben möchtest, ein Ticket erstellen.\n\n> :green_arrow_right: **Was genau ist ein Ticket?**\n> Für die meisten sollten Tickets bekannt sein, aber für diejenigen, die mit dem Begriff nichts anfangen können, ist es kurz gesagt ein privater Channel nur mit Teammitgliedern. Eine ausführlichere Erklärung findest du im #1192569323445821522 Channel.", color=discord.Color.red())
    embed2.set_image(url="http://kryplor.de/toastiiiss/footer.png")
    
    view1 = tickets1()
    view2 = tickets2()

    await bot.get_channel(1209942541118611538).send(embeds=(embed1, embed2), view=view1)
    await ctx.channel.send(view=view2)
jagged merlin
#

in the ticket create

#

doesnt he just want to insta send a close message in the ticket?

primal belfry
jagged merlin
#

await ticket_channel.send(view=tickets2(ticket_channel))

#

ye that was what i was thinking^

jagged merlin
primal belfry
#

of course it works

#

make the button send the message in the newly made channel, right after creating the channel

primal belfry
#

no..

#

create channel
make close-button view
send message with that close-button view

#

all within the create-ticket button

primal belfry
#

i think so yea

primal belfry
#

send the message in the create ticket button.

weary fulcrum
#

in your ticket support command you dont pass the ticket channel to view 2

primal belfry
#

Then send it with the embed and not as a new message lol