#how can I create a string selection without having the default options?

1 messages · Page 1 of 1 (latest)

lilac wolf
#

if the message has attachments, you must send a string select with the attachments

rigid zenith
bold berry
#

n tankei

rigid zenith
#

Please keep to English here

lilac wolf
rigid zenith
#

I read it the first time. Still does not make sense to me

lilac wolf
#

orange bar == string select

rigid zenith
#

Yes I understand what a string select is. But what are you trying to put in it. And what does clicking it do?

lilac wolf
#

the attachments

rigid zenith
#

And clicking it does what?
Post it in the channel? Changed the embed?
It also looks like you have it working

lilac wolf
#

send an embed, with attachment description

rigid zenith
#

In any case. Since you are using decorators you need to pass the list off attachments into the AttachmentView, and add the options in your __init() function

lilac wolf
#

how?

#

there is no way to access the self

#

🤔

rigid zenith
#

In the init function?

lilac wolf
#

on the decorator

rigid zenith
#

Just leave the options blank
And in init you do
self.attachment.add_item()

lilac wolf
#

hmmmm

rigid zenith
#

Move that entire block into init

#

It's correct but you can't do it in the decorator

lilac wolf
rigid zenith
#

Yes

lilac wolf
#

for which init?

rigid zenith
#

Send me the custom view as text please

lilac wolf
#

got it

#

🙏 ty