3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 22:21: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 = { const context: AutomodContext = {
member, member,
timestamp, timestamp,
voiceChannel: {}, voiceChannel: {
joined: null,
left: null,
},
user: member.user, user: member.user,
}; };
let addToQueue = false; let addToQueue = false;

View file

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