can now store users in database + database file
This commit is contained in:
@ -52,6 +52,20 @@ const DevData = {
|
||||
MessageType: "public",
|
||||
}
|
||||
}
|
||||
},
|
||||
"1099317452170596523": {
|
||||
type: "reactionRole",
|
||||
reactions: {
|
||||
"🪙":{
|
||||
Action: "role",
|
||||
Role: {
|
||||
Name: "Gold Role",
|
||||
ID: "1051891644007469096"
|
||||
},
|
||||
Restriction: "AddOnly",
|
||||
MessageType: "public",
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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" }
|
||||
|
Reference in New Issue
Block a user