mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 22:53:06 -04:00
Merge branch 'main' of https://gitlab.com/bignutty/labscore into main
This commit is contained in:
commit
ab34dd1108
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ module.exports.editOrReply = function(context, message, disableReference = false
|
|||
// Disable mentions
|
||||
if(!message.allowedMentions) message.allowedMentions = {parse: [], repliedUser: false}
|
||||
|
||||
message.nonce = Math.floor(Math.random() * 9999 + 1000)
|
||||
|
||||
// Handle responses for interaction context
|
||||
if(context.editOrRespond){
|
||||
return context.editOrRespond(message).catch((e)=>{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue