This commit is contained in:
insert 2024-12-26 12:27:55 -05:00
parent 055d2a6c8f
commit 50d3ea7383
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -23,8 +23,9 @@ class starboard(commands.Cog):
if payload.emoji.name == "":
print("Recieved star payload", file=sys.stderr)
chann = self.bot.get_channel(payload.channel_id)
message = chann.fetch_message(payload.message_id)
await chann.send(message.content)
message = await chann.fetch_message(payload.message_id)
await message.forward(chann)
await chann.send("forwarded message")
def setup(bot: commands.Bot):
bot.add_cog(starboard(bot))