Add slash command and d&d hint for data bank

This commit is contained in:
Cohee
2024-04-24 02:37:57 +03:00
parent 61241df0d4
commit 2bba186c9e
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,9 @@
import { renderExtensionTemplateAsync } from '../../extensions.js';
import { registerSlashCommand } from '../../slash-commands.js';
jQuery(async () => {
const buttons = await renderExtensionTemplateAsync('attachments', 'buttons', {});
$('#extensionsMenu').prepend(buttons);
registerSlashCommand('db', () => document.getElementById('manageAttachments')?.click(), ['databank', 'data-bank'], ' open the data bank', true, true);
});