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 { BanSearchCmd } from "./commands/BanSearchCmd";
|
||||||
import { ChannelInfoCmd } from "./commands/ChannelInfoCmd";
|
import { ChannelInfoCmd } from "./commands/ChannelInfoCmd";
|
||||||
import { CleanArgs, cleanCmd, CleanCmd } from "./commands/CleanCmd";
|
import { CleanArgs, cleanCmd, CleanCmd } from "./commands/CleanCmd";
|
||||||
|
import { ArchiveArgs, archiveCmd, ArchiveCmd } from "./commands/ArchiveCmd";
|
||||||
import { ContextCmd } from "./commands/ContextCmd";
|
import { ContextCmd } from "./commands/ContextCmd";
|
||||||
import { EmojiInfoCmd } from "./commands/EmojiInfoCmd";
|
import { EmojiInfoCmd } from "./commands/EmojiInfoCmd";
|
||||||
import { HelpCmd } from "./commands/HelpCmd";
|
import { HelpCmd } from "./commands/HelpCmd";
|
||||||
|
@ -51,6 +52,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
||||||
can_search: false,
|
can_search: false,
|
||||||
can_clean: false,
|
can_clean: false,
|
||||||
can_info: false,
|
can_info: false,
|
||||||
|
can_archive: false,
|
||||||
can_server: false,
|
can_server: false,
|
||||||
can_inviteinfo: false,
|
can_inviteinfo: false,
|
||||||
can_channelinfo: false,
|
can_channelinfo: false,
|
||||||
|
@ -79,6 +81,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
||||||
level: ">=50",
|
level: ">=50",
|
||||||
config: {
|
config: {
|
||||||
can_roles: true,
|
can_roles: true,
|
||||||
|
can_archive: true,
|
||||||
can_level: true,
|
can_level: true,
|
||||||
can_search: true,
|
can_search: true,
|
||||||
can_clean: true,
|
can_clean: true,
|
||||||
|
@ -106,6 +109,7 @@ const defaultOptions: PluginOptions<UtilityPluginType> = {
|
||||||
config: {
|
config: {
|
||||||
can_reload_guild: true,
|
can_reload_guild: true,
|
||||||
can_ping: true,
|
can_ping: true,
|
||||||
|
can_archive: true,
|
||||||
can_about: true,
|
can_about: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -145,6 +149,7 @@ export const UtilityPlugin = zeppelinGuildPlugin<UtilityPluginType>()({
|
||||||
JumboCmd,
|
JumboCmd,
|
||||||
AvatarCmd,
|
AvatarCmd,
|
||||||
CleanCmd,
|
CleanCmd,
|
||||||
|
ArchiveCmd,
|
||||||
InviteInfoCmd,
|
InviteInfoCmd,
|
||||||
ChannelInfoCmd,
|
ChannelInfoCmd,
|
||||||
MessageInfoCmd,
|
MessageInfoCmd,
|
||||||
|
@ -166,7 +171,13 @@ export const UtilityPlugin = zeppelinGuildPlugin<UtilityPluginType>()({
|
||||||
cleanCmd(pluginData, args, msg);
|
cleanCmd(pluginData, args, msg);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
archive(pluginData) {
|
||||||
|
return (args: ArchiveArgs, msg) => {
|
||||||
|
archiveCmd(pluginData, args, msg);
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
userInfo(pluginData) {
|
userInfo(pluginData) {
|
||||||
return (userId: Snowflake, requestMemberId?: Snowflake) => {
|
return (userId: Snowflake, requestMemberId?: Snowflake) => {
|
||||||
return getUserInfoEmbed(pluginData, userId, false, requestMemberId);
|
return getUserInfoEmbed(pluginData, userId, false, requestMemberId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue