Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArrowM/Queue-Bot
/ verifyIsAdmin
Function
verifyIsAdmin
src/utils/admin.utils.ts:37–41 ·
view source on GitHub ↗
(store: Store, member: GuildMember)
Source
from the content-addressed store, hash-verified
35
}
36
37
export
function
verifyIsAdmin(store: Store, member: GuildMember) {
38
if
(!isAdmin(store, member)) {
39
throw
new
AdminAccessError();
40
}
41
}
42
}
Callers
nothing calls this directly
Calls
1
isAdmin
Function · 0.85
Tested by
no test coverage detected