mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:29:29 +00:00
21 lines
415 B
TypeScript
21 lines
415 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
const updateChannelOverwrites = async (
|
|
channelId: string,
|
|
configKey: string,
|
|
configValue: string | boolean | number | null,
|
|
) => {
|
|
const data = {
|
|
channel_overwrites: {
|
|
[configKey]: configValue,
|
|
},
|
|
};
|
|
|
|
return APIClient(`/api/channel/${channelId}/`, {
|
|
method: 'POST',
|
|
body: data,
|
|
});
|
|
};
|
|
|
|
export default updateChannelOverwrites;
|