mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-13 08:33:02 -04:00
hack for permissions
This commit is contained in:
parent
497997de89
commit
bfc30b5ac3
1 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,9 @@ const { COLORS } = require("#constants")
|
||||||
*/
|
*/
|
||||||
const BLOCK_REASONS = {
|
const BLOCK_REASONS = {
|
||||||
20016: "Slowmode",
|
20016: "Slowmode",
|
||||||
200000: "AutoMod"
|
200000: "AutoMod",
|
||||||
|
// TODO: Handle permissions properly, this works as a "hack" for now.
|
||||||
|
50013: "Missing Permissions"
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.editOrReply = function(context, message, disableReference = false){
|
module.exports.editOrReply = function(context, message, disableReference = false){
|
||||||
|
@ -28,8 +30,6 @@ module.exports.editOrReply = function(context, message, disableReference = false
|
||||||
if(context._meta.isIncognito) flags = MessageFlags.EPHEMERAL
|
if(context._meta.isIncognito) flags = MessageFlags.EPHEMERAL
|
||||||
}
|
}
|
||||||
|
|
||||||
// you can figure out what this does on your own time
|
|
||||||
message.nonce = Math.floor(Math.random() * 9999 + 1000)
|
|
||||||
message.flags = flags;
|
message.flags = flags;
|
||||||
|
|
||||||
// Handle responses for interaction context
|
// Handle responses for interaction context
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue