Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Adding the X reaction to delete images? #63

Open
RourkeMind opened this issue Apr 24, 2023 · 1 comment
Open

Adding the X reaction to delete images? #63

RourkeMind opened this issue Apr 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@RourkeMind
Copy link

I've been working with GPT and Claude for two days to figure out a way to use python to delete images in a given channel and, therefore, the MJ gallery. Need to add the CROSS (X) as a reaction on each posted image. I have hundreds to remove, and this script seems like it can do the job if configured properly. I'm just starting as a coder so any help would be appreciated. If you already know how to do this, I will buy you lunch to show me how :-)

@Wildric-Auric Wildric-Auric added the enhancement New feature or request label May 5, 2023
@charlesknapp
Copy link

charlesknapp commented May 7, 2023

@RourkeMind You'd want to use the bot event on_message function to append a new 'X' interaction element view to your messages, similar to how the buttons branch functions. View the button branch

Essentially, create a new class, "mJDeleteView" or something like that.
Use the use the Discord interactions from discord.py

Example: discord.ui.button(label="X", style=discord.ButtonStyle.grey, row=0)
Docs: UI Buttons Documentation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants