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:
parent
a3d0ec03d9
commit
90ee4ad909
6 changed files with 174 additions and 0 deletions
16
backend/src/plugins/ChannelArchiver/ChannelArchiverPlugin.ts
Normal file
16
backend/src/plugins/ChannelArchiver/ChannelArchiverPlugin.ts
Normal 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;
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue