KineticFox / loa-lfgBot

A recreation of the famous lfg-Bot but only for Lost Ark (by now)
GNU General Public License v3.0
2 stars 1 forks source link

Don't choose thread by name #20

Closed KineticFox closed 11 months ago

KineticFox commented 11 months ago

If you want to join a group and there is a group with the same name strange behavior happesn because of two groups with the same name.

BaluderTanzbaer commented 11 months ago

Replace

allThreads = chanell.threads

          for t in allThreads:
                 if t.name == embed.title:
                     thread_id = t.id

          thread = chanell.get_thread(thread_id)

With thread = chanell.get_thread(interaction.message.id)

BaluderTanzbaer commented 11 months ago

Since threads are based in messages they Share the same ID (at least here since you create the thread in top of your raid-embed-message

KineticFox commented 11 months ago

Yes this works, thanks.