Update
This commit is contained in:
parent
055d2a6c8f
commit
50d3ea7383
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
Loading…
Reference in a new issue