can now store users in database + database file

This commit is contained in:
2023-04-24 00:40:34 +02:00
parent 16dac26a2c
commit e428ce388c
9 changed files with 264 additions and 22 deletions

View File

@ -52,6 +52,20 @@ const DevData = {
MessageType: "public",
}
}
},
"1099317452170596523": {
type: "reactionRole",
reactions: {
"🪙":{
Action: "role",
Role: {
Name: "Gold Role",
ID: "1051891644007469096"
},
Restriction: "AddOnly",
MessageType: "public",
},
}
}
}

View File

@ -94,17 +94,6 @@ revokes a given roles to a given user
*/
const RemoveRoles = async (userVal, roles, bot) => {
[
{
name: "role",
reason: "given as a test"
},
{
name: "role",
reason: undefined
},
]
// error handling
if (userVal == undefined) { throw "error user was undefined" }
if (roleName == undefined) { throw "error roleNames was undefined" }