mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
23 lines
612 B
TypeScript
23 lines
612 B
TypeScript
import { logsEvent } from "../types";
|
|
import { stripObjectToScalars } from "src/utils";
|
|
import { LogType } from "src/data/LogType";
|
|
|
|
export const LogsChannelCreateEvt = logsEvent({
|
|
event: "channelCreate",
|
|
|
|
async listener(meta) {
|
|
meta.pluginData.state.guildLogs.log(LogType.CHANNEL_CREATE, {
|
|
channel: stripObjectToScalars(meta.args.channel),
|
|
});
|
|
},
|
|
});
|
|
|
|
export const LogsChannelDeleteEvt = logsEvent({
|
|
event: "channelDelete",
|
|
|
|
async listener(meta) {
|
|
meta.pluginData.state.guildLogs.log(LogType.CHANNEL_DELETE, {
|
|
channel: stripObjectToScalars(meta.args.channel),
|
|
});
|
|
},
|
|
});
|