File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ def _save(data: dict):
5050def _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 )
You can’t perform that action at this time.
0 commit comments