mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-12 04:55:01 +00:00
Update to Knub30.0.0-beta.37 and Eris 0.15, first pass
This commit is contained in:
parent
84da543205
commit
f6be4f4af6
133 changed files with 6507 additions and 380 deletions
|
@ -12,7 +12,8 @@ const defaultOptions: PluginOptions<WelcomeMessagePluginType> = {
|
|||
},
|
||||
};
|
||||
|
||||
export const WelcomeMessagePlugin = zeppelinGuildPlugin<WelcomeMessagePluginType>()("welcome_message", {
|
||||
export const WelcomeMessagePlugin = zeppelinGuildPlugin<WelcomeMessagePluginType>()({
|
||||
name: "welcome_message",
|
||||
showInDocs: true,
|
||||
info: {
|
||||
prettyName: "Welcome message",
|
||||
|
@ -26,7 +27,7 @@ export const WelcomeMessagePlugin = zeppelinGuildPlugin<WelcomeMessagePluginType
|
|||
SendWelcomeMessageEvt,
|
||||
],
|
||||
|
||||
onLoad(pluginData) {
|
||||
afterLoad(pluginData) {
|
||||
const { state, guild } = pluginData;
|
||||
|
||||
state.logs = new GuildLogs(guild.id);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import * as t from "io-ts";
|
||||
import { BasePluginType, guildEventListener } from "knub";
|
||||
import { BasePluginType, typedGuildEventListener } from "knub";
|
||||
import { tNullable } from "../../utils";
|
||||
import { GuildLogs } from "../../data/GuildLogs";
|
||||
|
||||
|
@ -18,4 +18,4 @@ export interface WelcomeMessagePluginType extends BasePluginType {
|
|||
};
|
||||
}
|
||||
|
||||
export const welcomeMessageEvt = guildEventListener<WelcomeMessagePluginType>();
|
||||
export const welcomeMessageEvt = typedGuildEventListener<WelcomeMessagePluginType>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue