summary refs log tree commit diff
path: root/src/util/Config.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-05 16:25:27 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-05 16:25:27 +0100
commit43ce48e7c6c40b95ce47adc737a5527439370a1f (patch)
tree3ba5ecd7aa63eab83a5fe1ddd42af959e7e34010 /src/util/Config.ts
parentMerge branch 'master' of https://github.com/discord-open-source/discord-gatew... (diff)
downloadserver-43ce48e7c6c40b95ce47adc737a5527439370a1f.tar.xz
:art: use discord-server-util
Diffstat (limited to 'src/util/Config.ts')
-rw-r--r--src/util/Config.ts19
1 files changed, 19 insertions, 0 deletions
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 = {};