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