mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-19 08:05:01 +00:00
Update to Knub 24. Update Node typings to fix error with [util.inspect.custom] property.
This commit is contained in:
parent
12f25346ec
commit
c4ba494904
12 changed files with 183 additions and 122 deletions
|
@ -1,4 +1,4 @@
|
|||
import { decorators as d, logger } from "knub";
|
||||
import { decorators as d, ICommandContext, logger } from "knub";
|
||||
import { GlobalZeppelinPlugin } from "./GlobalZeppelinPlugin";
|
||||
import { Attachment, GuildChannel, Message, TextChannel } from "eris";
|
||||
import { confirm, downloadFile, errorMessage, noop, SECONDS, trimLines } from "../utils";
|
||||
|
@ -57,8 +57,8 @@ export class ChannelArchiverPlugin extends ZeppelinPlugin {
|
|||
},
|
||||
],
|
||||
preFilters: [
|
||||
(msg, command, plugin: ChannelArchiverPlugin) => {
|
||||
return plugin.isOwner(msg.author.id);
|
||||
(command, context: ICommandContext) => {
|
||||
return (context.plugin as ChannelArchiverPlugin).isOwner(context.message.author.id);
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue