mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
tags: expose renderTagBody() as a public function
This commit is contained in:
parent
fc8b78fb55
commit
f82cbb43e9
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,8 @@ import moment from "moment-timezone";
|
||||||
import humanizeDuration from "humanize-duration";
|
import humanizeDuration from "humanize-duration";
|
||||||
import { convertDelayStringToMS } from "../../utils";
|
import { convertDelayStringToMS } from "../../utils";
|
||||||
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
|
||||||
|
import { mapToPublicFn } from "../../pluginUtils";
|
||||||
|
import { renderTagBody } from "./util/renderTagBody";
|
||||||
|
|
||||||
const defaultOptions: PluginOptions<TagsPluginType> = {
|
const defaultOptions: PluginOptions<TagsPluginType> = {
|
||||||
config: {
|
config: {
|
||||||
|
@ -63,6 +65,10 @@ export const TagsPlugin = zeppelinPlugin<TagsPluginType>()("tags", {
|
||||||
TagCreateCmd,
|
TagCreateCmd,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
public: {
|
||||||
|
renderTagBody: mapToPublicFn(renderTagBody),
|
||||||
|
},
|
||||||
|
|
||||||
onLoad(pluginData) {
|
onLoad(pluginData) {
|
||||||
const { state, guild } = pluginData;
|
const { state, guild } = pluginData;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue