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
Copy file name to clipboardExpand all lines: src/app/cfg/app.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -312,19 +312,19 @@ const app = {
312
312
if(message.channel)
313
313
message.channel.send(options).then(msg=>{
314
314
if(message.createdTimestamp)
315
-
app.logger.debug("DISCORD",`[MESSAGE] Got message in ${(currTime-message.createdTimestamp)/1000}ms. | Responded in ${(currTime-msg.createdTimestamp)/1000}ms.`);
315
+
app.logger.debug("DISCORD",`[MESSAGE] Got message in ${(currTime-message.createdTimestamp)}ms. | Responded in ${(msg.createdTimestamp-currTime)}ms.`);
316
316
if(callback!=null)callback(msg);
317
317
}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to send! Error: ${err.message}`)});
318
318
else
319
319
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
320
}elseif(action==1){
321
321
if(!message.channel)return;// Hate to break it, but you can't edit a channel as a message. 💀 (imagine that)
322
322
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.`);
323
+
if(message.editedTimestamp)app.logger.debug("DISCORD",`[MESSAGE] Edited message in ${(msg.editedTimestamp-currTime)}ms.`);
324
324
if(callback!=null)callback(msg);
325
325
}).catch(err=>{app.logger.warn("DISCORD",`[MESSAGE] Message failed to edit! Error: ${err.message}`)});
0 commit comments