mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
Update UtilityPlugin.ts
This commit is contained in:
parent
93ded96b13
commit
595ac15ed4
1 changed files with 12 additions and 1 deletions
|
@ -15,6 +15,7 @@ import { AvatarCmd } from "./commands/AvatarCmd";
|
|||
import { BanSearchCmd } from "./commands/BanSearchCmd";
|
||||
import { ChannelInfoCmd } from "./commands/ChannelInfoCmd";
|
||||
import { CleanArgs, cleanCmd, CleanCmd } from "./commands/CleanCmd";
|
||||
import { ArchiveArgs, archiveCmd, ArchiveCmd } from "./commands/ArchiveCmd";
|
||||
import { ContextCmd } from "./commands/ContextCmd";
|
||||
import { EmojiInfoCmd } from "./commands/EmojiInfoCmd";
|
||||
import { HelpCmd } from "./commands/HelpCmd";
|
||||
|
@ -51,6 +52,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
|||
can_search: false,
|
||||
can_clean: false,
|
||||
can_info: false,
|
||||
can_archive: false,
|
||||
can_server: false,
|
||||
can_inviteinfo: false,
|
||||
can_channelinfo: false,
|
||||
|
@ -79,6 +81,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
|||
level: ">=50",
|
||||
config: {
|
||||
can_roles: true,
|
||||
can_archive: true,
|
||||
can_level: true,
|
||||
can_search: true,
|
||||
can_clean: true,
|
||||
|
@ -106,6 +109,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
|||
config: {
|
||||
can_reload_guild: true,
|
||||
can_ping: true,
|
||||
can_archive: true,
|
||||
can_about: true,
|
||||
},
|
||||
},
|
||||
|
@ -145,6 +149,7 @@ export const UtilityPlugin = zeppelinGuildPlugin<UtilityPluginType>()({
|
|||
JumboCmd,
|
||||
AvatarCmd,
|
||||
CleanCmd,
|
||||
ArchiveCmd,
|
||||
InviteInfoCmd,
|
||||
ChannelInfoCmd,
|
||||
MessageInfoCmd,
|
||||
|
@ -167,6 +172,12 @@ export const UtilityPlugin = zeppelinGuildPlugin<UtilityPluginType>()({
|
|||
};
|
||||
},
|
||||
|
||||
archive(pluginData) {
|
||||
return (args: ArchiveArgs, msg) => {
|
||||
archiveCmd(pluginData, args, msg);
|
||||
};
|
||||
},
|
||||
|
||||
userInfo(pluginData) {
|
||||
return (userId: Snowflake, requestMemberId?: Snowflake) => {
|
||||
return getUserInfoEmbed(pluginData, userId, false, requestMemberId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue