feat(teams): answer core's Team provider from the guild board #9
@@ -5,9 +5,10 @@
|
|||||||
// core-internal (docs/website/TEAMS.md §10.3) and this module must never name
|
// core-internal (docs/website/TEAMS.md §10.3) and this module must never name
|
||||||
// one, even though it is what fills them.
|
// one, even though it is what fills them.
|
||||||
|
|
||||||
const core = require('../../core')
|
// `query` is destructured from the core facade at require time, like every other
|
||||||
|
// *.db.js here. The facade resolves `ctx` per call, so taking it now is safe even
|
||||||
const query = (...args) => core.db.query(...args)
|
// though `ctx` does not exist yet when this file is first required.
|
||||||
|
const { query } = require('../../core')
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The guild board — one row per guild the shard has told us about.
|
* The guild board — one row per guild the shard has told us about.
|
||||||
|
|||||||
Reference in New Issue
Block a user