Use buttons for the bookmark command#1091
Conversation
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
Co-authored-by: Dorukyum <53639936+Dorukyum@users.noreply.github.com>
|
It looks like we have a full on view = discord.ui.View(timeout=TIMEOUT)
view.add_item(
SendBookmark(self.action_bookmark, ctx.author, ctx.channel, target_message)
)I think this should be flipped around. There's no need for a full fledged subclass for a simple link button, but maybe we can use a view subclass for the actual bookmark. I doubt we'll also need a button subclass since we're not doing anything dynamic |
I think you have it flipped. I used the button subclass for the button that is sent in the channel where the bookmark is invoked in so others can press the button. For the button in DM's that redirects to the bookmarked message, I used a view directly. |
|
You're right that I had it flipped. The only other thing I might recommend we change is maybe subclassing |
Relevant Issues
Closes #932
Description
I replaced the reactions used currently with buttons
Did you: