3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 13:51:51 +00:00

made the context initializer more clear

This commit is contained in:
almeidx 2021-08-14 16:35:20 +01:00
parent 5ad461260a
commit b6d433cbb1
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5
2 changed files with 6 additions and 3 deletions

View file

@ -16,7 +16,10 @@ export const RunAutomodOnVoiceStateUpdate = typedGuildEventListener<AutomodPlugi
const context: AutomodContext = {
member,
timestamp,
voiceChannel: {},
voiceChannel: {
joined: null,
left: null,
},
user: member.user,
};
let addToQueue = false;

View file

@ -141,8 +141,8 @@ export interface AutomodContext {
};
channel?: TextChannel | ThreadChannel;
voiceChannel?: {
joined?: VoiceChannel | StageChannel;
left?: VoiceChannel | StageChannel;
joined?: VoiceChannel | StageChannel | null;
left?: VoiceChannel | StageChannel | null;
};
}