WebApr 20, 2024 · 2 Answers Sorted by: 4 Old publication but may help those currently looking for it. For V.13 it can be used this way: <#Channel>.messages.fetch ('messageID').then … Webconst Discord = require ('./mymodule/src/index.js'); const client = new Discord.Client (); client.on ('ready', async () => { console.log ('Ready!'); const guild = client.guilds.cache.get ('guild id'); const channel = guild.channels.cache.get ('channel id'); let result = []; const search = await channel.messages.search ( { channel: [channel.id], …
javascript - Fetch a message (by ID) and edit it - Stack Overflow
WebВ discord.js v14.8+ появилось новое событие GuildAuditLogEntryCreate. Вы можете узнать, кто удалил сообщение, как только получите соответствующее событие журнала аудита (GuildAuditLogEntryCreate). WebBut basically you'd be using the fetch method on a TextChannel and you'd have to use the before option in ChannelLogsQueryOption or the first option in the fetch method I … farming in the lake district facts
Node.js 如何从频道获取消 …
WebMay 23, 2024 · messages.fetch () returns a promise. So in order to react to the message fetched, you can do it in two ways. channel.messages.fetch (msg).then (m => { m.react … Webasync run (message, args, data) { let status = args [ 0 ]; if (!status) { return message.channel.send (message.language.get ( "BACKUP_ERR_STATUS" )); } if (status === "create" ) { backup.create (message.guild).then ((backupID) => { message.channel.send (message.language.get ( "BACKUP_CREATE_SUCCESS" )); … WebOct 27, 2024 · You are getting the message correctly, and it has almost all the properties (since it's fetched). You may however want to change message in the .then to … farming in the hall nashville