mirror of
https://github.com/SrIzan10/femboybot.git
synced 2026-06-06 00:56:50 +00:00
feat: some random moving system
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
import { EventType, eventModule } from "@sern/handler";
|
||||
import { VoiceState } from "discord.js";
|
||||
import { VoiceChannel, VoiceState } from "discord.js";
|
||||
|
||||
export default eventModule({
|
||||
type: EventType.Discord,
|
||||
name: 'voiceStateUpdate',
|
||||
execute: async (oldState: VoiceState, newState: VoiceState) => {
|
||||
if (newState.member!.id !== '954042602615869520') return;
|
||||
if (newState.member!.id !== '703974042700611634') return;
|
||||
|
||||
if (newState.channelId === '940619088550559745' && (await newState.client.channels.fetch('839200013618774028') as VoiceChannel).members.size >= 1) {
|
||||
await newState.member?.voice.setChannel('839200013618774028')
|
||||
}
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user