-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] Make embeds
optionnal as those can be hidden clientside
#21
Conversation
@eibex I'm sorry 😞. This PR ended up way bigger than I expected, dont hesitate if you have any remarks |
Thanks for the PR! It makes sense and looks good. I will test the PR once I have time this evening or tomorrow and also see if it is easily adaptable for #20, but I doubt any major issues would arise. |
bot.py
Outdated
f"`{prefix}edit #channelname // 1 // New Title // New Description` " | ||
"to edit the reaction-role message." | ||
"There is only one reaction-role message in this channel. **Type**:" | ||
f"\n`{prefix}edit #channelname // 1 // New Message // New Embed Title (Optionnal) // New Embed Description (Optionnal)`" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: it should be optional
bot.py
Outdated
|
||
await ctx.send( | ||
f"There are **{len(r_ids)}** reaction-role messages in this channel. **Type**:" | ||
f"\n`{prefix}edit #channelname // MESSAGE_NUMBER`" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be {prefix}rm-embed
not edit
Found some time to test it now. Other than the very minor issues I already sent, I noticed that if you try to Other than that it works great, thanks a lot! |
Or we could also delete the message in that case ? |
Rewriting the response since I think I misunderstood your comment. I wouldn't straight up delete the message without warning since from what I can see it's meant to maintain it but just remove the embed. After implementing #20 I would work on a new |
Thanks for the quick changes! |
@eibex I did the changes. I also slightly modified the |
That would be a good idea for completeness. Thanks! But I would wait to merge #20 first to avoid continuous merge conflicts (sorry!). |
Thanks for the quick changes! :D
Thanks for the quick changes! :D
If the users have hidden the embed messages in their settings,they only see the reactions attached to an empty message.
This commit aims to make the embed messages 'optionnal' and rely on a normal message. Here's the changes on the commands:
{prefix}new - message formatting (
step == 3
) :some text
: Set only a messagesome text // some embed title
: Set a message with an embed that only has a titlesome text // some embed title // some embed content
: Set a message with an embed that has a title and some contents{prefix}edit:
{prefix}edit #channelname // MESSAGE_NUMBER // New Message
: Change the message's body{prefix}edit #channelname // MESSAGE_NUMBER // New Message // New Embed Title (Optionnal)
:{prefix}edit #channelname // MESSAGE_NUMBER // New Message // New Embed Title (Optionnal) // New Embed Description (Optionnal)t
:{prefix}rm-embed:
{prefix}edit #channelname // MESSAGE_NUMBER
: Remove the embed set on the selected reaction-role message