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:
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 = {
|
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;
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue