You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.logger.debug("DISCORD",`[MESSAGE] Got message in ${(currTime-message.createdTimestamp)/1000}ms. | Responded in ${(currTime-msg.createdTimestamp)/1000}ms.`);
319
+
app.logger.debug("DISCORD",`[MESSAGE] Got message in ${(currTime-message.createdTimestamp)}ms. | Responded in ${(msg.createdTimestamp-currTime)}ms.`);
316
320
if(callback!=null)callback(msg);
317
321
}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to send! Error: ${err.message}`)});
318
322
else
319
323
message.send(options).then(msg=>{if(callback!=null)callback(msg);}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to send! Error: ${err.message}`)});
320
324
}elseif(action==1){
321
325
if(!message.channel)return;// Hate to break it, but you can't edit a channel as a message. 💀 (imagine that)
322
326
if(message.edit)message.edit(options).then(msg=>{
323
-
if(message.editedTimestamp)app.logger.debug("DISCORD",`[MESSAGE] Edited message in ${(currTime-msg.editedTimestamp)/1000}ms.`);
327
+
if(message.editedTimestamp)app.logger.debug("DISCORD",`[MESSAGE] Edited message in ${(msg.editedTimestamp-currTime)}ms.`);
324
328
if(callback!=null)callback(msg);
325
329
}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to edit! Error: ${err.message}`)});
0 commit comments