3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Fix various bugs, update djs

This commit is contained in:
Dark 2021-07-04 23:14:12 +02:00
parent 4d1924b1ec
commit dda19de6e6
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
31 changed files with 96 additions and 72 deletions

View file

@ -10,10 +10,10 @@ export async function moveMember(
errorChannel: TextChannel,
) {
const modMember: GuildMember = await pluginData.guild.members.fetch(toMoveID as Snowflake);
if (modMember.voice.channelID != null) {
if (modMember.voice.channelId != null) {
try {
await modMember.edit({
channel: target.voice.channelID,
channel: target.voice.channelId,
});
} catch {
sendErrorMessage(pluginData, errorChannel, "Failed to move you. Are you in a voice channel?");

View file

@ -11,8 +11,8 @@ export async function sendWhere(
channel: TextChannel,
prepend: string,
) {
const voice = member.voice.channelID
? (pluginData.guild.channels.resolve(member.voice.channelID) as VoiceChannel)
const voice = member.voice.channelId
? (pluginData.guild.channels.resolve(member.voice.channelId) as VoiceChannel)
: null;
if (voice == null) {