This file contains hidden or 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
<?php | |
class myForumClass { | |
/** | |
* Add a new forum topic | |
* | |
* @param string $name | |
* @param string $slug | |
* @param string $description | |
* @param string $icon |
This file contains hidden or 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 hidden or 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 hidden or 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'); | |
/** |