3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 20:55:01 +00:00

Migrate ChannelArchiver to new Plugin structure, isOwner -> pluginUtils

This commit is contained in:
Dark 2020-07-22 22:33:10 +02:00
parent a3d0ec03d9
commit 90ee4ad909
6 changed files with 174 additions and 0 deletions

View file

@ -0,0 +1,16 @@
import { zeppelinPlugin } from "../ZeppelinPluginBlueprint";
import { ChannelArchiverPluginType } from "./types";
import { ArchiveChannelCmd } from "./commands/ArchiveChannelCmd";
export const ChannelArchiverPlugin = zeppelinPlugin<ChannelArchiverPluginType>()("channel_archiver", {
showInDocs: false,
// prettier-ignore
commands: [
ArchiveChannelCmd,
],
onLoad(pluginData) {
const { state, guild } = pluginData;
},
});