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 == "⭐":
|
if payload.emoji.name == "⭐":
|
||||||
print("Recieved star payload", file=sys.stderr)
|
print("Recieved star payload", file=sys.stderr)
|
||||||
chann = self.bot.get_channel(payload.channel_id)
|
chann = self.bot.get_channel(payload.channel_id)
|
||||||
message = chann.fetch_message(payload.message_id)
|
message = await chann.fetch_message(payload.message_id)
|
||||||
await chann.send(message.content)
|
await message.forward(chann)
|
||||||
|
await chann.send("forwarded message")
|
||||||
|
|
||||||
def setup(bot: commands.Bot):
|
def setup(bot: commands.Bot):
|
||||||
bot.add_cog(starboard(bot))
|
bot.add_cog(starboard(bot))
|
Loading…
Reference in a new issue