Add roles management per reaction on a message and event reminder with role ping
This commit is contained in:
31
src/features/static.js
Normal file
31
src/features/static.js
Normal file
@@ -0,0 +1,31 @@
|
||||
const { CreateStatic, ReadStatic, DeleteStatic } = require('../database/staticdb')
|
||||
|
||||
const handleStaticAdd = async (name, creator, members, size) => {
|
||||
if (!name || !createor || !members || !size) return false
|
||||
|
||||
const result = await CreateStatic(name, creator, members, size)
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
const handleStaticGet = async (name) => {
|
||||
if (!name) return false;
|
||||
|
||||
const result = await ReadStatic(name)
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
const handleStaticDelete = async (name) => {
|
||||
if (!name) return false
|
||||
|
||||
const result = await DeleteStatic(name)
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
handleStaticAdd,
|
||||
handleStaticGet,
|
||||
handleStaticDelete,
|
||||
}
|
||||
Reference in New Issue
Block a user