This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { commands } from './command_group'; | |
import { STACKEXCHANGE_API_CHANNEL_ID } from './ids'; | |
/** | |
* KV Namespace | |
*/ | |
const stackKv = new pylon.KVNamespace('stackexchange'); | |
/** | |
* Command for listing all items in the KV Namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { commands } from './command_group'; | |
import { WELCOME_CHANNEL_ID } from './ids'; | |
/** | |
* Get user's publicFlags | |
*/ | |
function getFlagsOld(publicFlags) { | |
const flags = Array( | |
[1, 1 << 0, 'DISCORD_EMPLOYEE', 'Discord Employee', true], | |
[2, 1 << 1, 'DISCORD_PARTNER', 'Discord Partner', true], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { commands } from './command_group'; | |
import { SUGGESTED_PLUGINS_CHANNEL_ID } from './ids'; | |
import { numberWithCommas } from './utility'; | |
/** | |
* KV Namespace | |
*/ | |
const pluginKV = new pylon.KVNamespace('plugins'); | |
/** |