Fix error in restore plugin when saving is_voice_muted false
This commit is contained in:
parent
8c83b7d684
commit
6e7338e5ec
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export class GuildPersistedData extends BaseRepository {
|
||||||
const finalData: any = {};
|
const finalData: any = {};
|
||||||
if (data.roles) finalData.roles = data.roles.join(",");
|
if (data.roles) finalData.roles = data.roles.join(",");
|
||||||
if (data.nickname) finalData.nickname = data.nickname;
|
if (data.nickname) finalData.nickname = data.nickname;
|
||||||
if (data.is_voice_muted) finalData.is_voice_muted = data.is_voice_muted ? 1 : 0;
|
if (data.is_voice_muted != null) finalData.is_voice_muted = data.is_voice_muted ? 1 : 0;
|
||||||
|
|
||||||
const existing = await this.find(userId);
|
const existing = await this.find(userId);
|
||||||
if (existing) {
|
if (existing) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue