Skip to content

Commit

Permalink
[EmbedCreator] v1.0.1 Allow role mentions inside message content
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreusada committed Sep 3, 2023
1 parent b6aea29 commit b4969f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/cog_embedcreator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Through this guide, ``[p]`` will always represent your prefix. Replace

.. note::

This guide was last updated for version 1.0.0. Ensure
This guide was last updated for version 1.0.1. Ensure
that you are up to date by running ``[p]cog update embedcreator``.

If there is something missing, or something that needs improving
Expand Down
2 changes: 1 addition & 1 deletion embedcreator/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Through this guide, ``[p]`` will always represent your prefix. Replace

.. note::

This guide was last updated for version 1.0.0. Ensure
This guide was last updated for version 1.0.1. Ensure
that you are up to date by running ``[p]cog update embedcreator``.

If there is something missing, or something that needs improving
Expand Down
8 changes: 6 additions & 2 deletions embedcreator/embedcreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,11 @@ async def send(self, interaction: discord.Interaction, select: discord.ui.Channe
f"I do not have permissions to post in {channel.mention}.", ephemeral=True
)
try:
await channel.send(embed=self.embed, content=self.content)
await channel.send(
embed=self.embed,
content=self.content,
allowed_mentions=discord.AllowedMentions(roles=True),
)
except discord.HTTPException:
return await interaction.response.send_message(
"Something went wrong whilst sending the embed."
Expand Down Expand Up @@ -623,7 +627,7 @@ class EmbedCreator(commands.Cog):
"""Create embeds using buttons, modals and dropdowns!"""

__author__ = "Kreusada"
__version__ = "1.0.0"
__version__ = "1.0.1"

def __init__(self, bot: Red):
self.bot = bot
Expand Down

0 comments on commit b4969f3

Please sign in to comment.