Drop KV for et member management
This commit is contained in:
@ -8,7 +8,13 @@ export default async function (
|
||||
if (roles?.includes("374851061233614849")) permissions |= 1 << 0; // Administration
|
||||
if (!roles) permissions |= 1 << 1;
|
||||
if (roles?.includes("593209890949038082")) permissions |= 1 << 2; // Discord Moderator
|
||||
if (Boolean(await context.env.DATA.get(`etmember_${userid}`)))
|
||||
if (
|
||||
Boolean(
|
||||
await context.env.D1.prepare("SELECT * FROM et_members WHERE id = ?;")
|
||||
.bind(userid)
|
||||
.first(),
|
||||
)
|
||||
)
|
||||
permissions |= 1 << 3; // Events Team
|
||||
if (roles?.includes("607697704419852289")) permissions |= 1 << 4; // Events Team Management
|
||||
if (
|
||||
|
Reference in New Issue
Block a user