Merge branch 'main' of https://gitlab.com/bignutty/labscore into main

This commit is contained in:
derpystuff 2023-12-13 18:44:34 +01:00
commit ab34dd1108

View file

@ -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)=>{