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:
parent
5ad461260a
commit
b6d433cbb1
2 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue