goof
This commit is contained in:
parent
c0614b18c3
commit
3eb2338c3e
@ -157,6 +157,9 @@ router.patch(
|
|||||||
guild.features = body.features;
|
guild.features = body.features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: check if body ids are valid
|
||||||
|
guild.assign(body);
|
||||||
|
|
||||||
if (body.public_updates_channel_id == "1") {
|
if (body.public_updates_channel_id == "1") {
|
||||||
// move all channels up 1
|
// move all channels up 1
|
||||||
await Channel.createQueryBuilder("channels")
|
await Channel.createQueryBuilder("channels")
|
||||||
@ -185,7 +188,7 @@ router.patch(
|
|||||||
{ skipPermissionCheck: true },
|
{ skipPermissionCheck: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
guild.rules_channel_id = channel.id;
|
guild.public_updates_channel_id = channel.id;
|
||||||
} else if (body.public_updates_channel_id != undefined) {
|
} else if (body.public_updates_channel_id != undefined) {
|
||||||
// ensure channel exists in this guild
|
// ensure channel exists in this guild
|
||||||
await Channel.findOneOrFail({
|
await Channel.findOneOrFail({
|
||||||
@ -231,9 +234,6 @@ router.patch(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: check if body ids are valid
|
|
||||||
guild.assign(body);
|
|
||||||
|
|
||||||
const data = guild.toJSON();
|
const data = guild.toJSON();
|
||||||
// TODO: guild hashes
|
// TODO: guild hashes
|
||||||
// TODO: fix vanity_url_code, template_id
|
// TODO: fix vanity_url_code, template_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user