This commit is contained in:
Jiiks 2018-08-22 12:07:32 +03:00
parent 9db6ddaf98
commit b4fa9c2934
1 changed files with 5 additions and 0 deletions

View File

@ -33,6 +33,11 @@ export class BdContextMenu {
export class DiscordContextMenu {
/**
* add items to Discord context menu
* @param {any} items items to add
* @param {Function} [filter] filter function for target filtering
*/
static add(items, filter) {
if (!this.patched) this.patch();
this.menus.push({ items, filter });