Add fn.checkMembership
This commit is contained in:
parent
8fb269e6c1
commit
1fd3953852
@ -700,7 +700,14 @@ const functions = {
|
||||
console.error(err);
|
||||
});
|
||||
},
|
||||
|
||||
checkMembership(client, userId) {
|
||||
if (!client.memberships) throw new Error("Membership Collection Not Exist");
|
||||
if (client.memberships.has(userId)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
autoresponses: { // Specific responses for certain keywords in sent messages
|
||||
checkForAll(messageContent) {
|
||||
let responses = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user