我在想我的机器人会返回过去获取自己的消息并在几天后将其消息链接发回。
答案 0 :(得分:0)
您可以使用数据库并将消息 ID 和通道 ID 作为记录存储在表中(假设您使用 SQL)。然后当你想再次获取时,就做
let channel = await client.channels.fetch('channelid')
let msg = await channel.messages.fetch('messageid')
message.channel.send(msg.url)
或者您可以简单地存储网址,然后只需 message.channel.send('your url')