Skip to content

Commit 4290d3c

Browse files
Improved the sticky message formatting
1 parent fe831d8 commit 4290d3c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/cogs/utility/sticky.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def _save(data: dict):
5050
def _sticky_view(content: str, color: int) -> discord.ui.LayoutView:
5151
view = discord.ui.LayoutView()
5252
view.add_item(discord.ui.Container(
53-
discord.ui.TextDisplay(content=f"📌 {content}"),
53+
discord.ui.TextDisplay(content=f"## 📌 Sticky Message"),
54+
discord.ui.Separator(),
55+
discord.ui.TextDisplay(content=f"{content}"),
5456
accent_colour=discord.Colour(color),
5557
))
5658
return view
@@ -215,7 +217,7 @@ async def sticky_list(self, ctx: commands.Context):
215217

216218
@commands.Cog.listener()
217219
async def on_message(self, message: discord.Message):
218-
if not message.guild or message.author.bot:
220+
if not message.guild or message.author.id == self.bot.user.id:
219221
return
220222

221223
entry = self._get(message.guild.id, message.channel.id)

0 commit comments

Comments
 (0)