From 43ce48e7c6c40b95ce47adc737a5527439370a1f Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 5 Feb 2021 16:25:27 +0100 Subject: :art: use discord-server-util --- src/util/Config.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/util/Config.ts (limited to 'src/util/Config.ts') diff --git a/src/util/Config.ts b/src/util/Config.ts new file mode 100644 index 00000000..4479c721 --- /dev/null +++ b/src/util/Config.ts @@ -0,0 +1,19 @@ +import { Config } from "discord-server-util"; + +export default { + init() { + return Config.init({ gateway: DefaultOptions }); + }, + get() { + return Config.getAll().gateway; + }, + set(val: any) { + return Config.setAll({ gateway: val }); + }, + getAll: Config.getAll, + setAll: Config.setAll, +}; + +export interface DefaultOptions {} + +export const DefaultOptions: DefaultOptions = {}; -- cgit 1.5.1