mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
20 lines
472 B
JavaScript
20 lines
472 B
JavaScript
const {setOptions} = require("../../config/plugins");
|
|
|
|
module.exports.urgencyLevels = [
|
|
{name: "Low", value: "low"},
|
|
{name: "Normal", value: "normal"},
|
|
{name: "High", value: "critical"},
|
|
];
|
|
module.exports.setUrgency = (options, level) => {
|
|
options.urgency = level
|
|
setOption(options)
|
|
};
|
|
module.exports.setUnpause = (options, value) => {
|
|
options.unpauseNotification = value
|
|
setOption(options)
|
|
};
|
|
|
|
let setOption = options => {
|
|
setOptions("notifications", options)
|
|
};
|