fix(Guild): use snake case when editing system_channel_flags (#3781)

This commit is contained in:
Sugden
2020-02-12 21:47:24 +00:00
committed by GitHub
parent 562b5bfca7
commit 878cc050d4

View File

@@ -839,7 +839,7 @@ class Guild extends Base {
Number(data.defaultMessageNotifications);
}
if (typeof data.systemChannelFlags !== 'undefined') {
_data.systemChannelFlags = SystemChannelFlags.resolve(data.systemChannelFlags);
_data.system_channel_flags = SystemChannelFlags.resolve(data.systemChannelFlags);
}
return this.client.api.guilds(this.id).patch({ data: _data, reason })
.then(newData => this.client.actions.GuildUpdate.handle(newData).updated);