summary refs log tree commit diff homepage
path: root/src/Rcon.ts
diff options
context:
space:
mode:
authordestruc7i0n <6181960+destruc7i0n@users.noreply.github.com>2021-12-24 17:51:26 -0500
committerGitHub <noreply@github.com>2021-12-24 17:51:26 -0500
commit328eec0cd4fff00f19e734cc7e9b54124ab44cf5 (patch)
tree3a36a0884f2d280ced7fedefffef4ad08574deed /src/Rcon.ts
parentcheck if channel is valid on launch (diff)
downloadshulker-328eec0cd4fff00f19e734cc7e9b54124ab44cf5.tar.gz
shulker-328eec0cd4fff00f19e734cc7e9b54124ab44cf5.zip
updated to discord.js v13 (#77)
* updated to discord.js v13

* update loading of config

* updated debug lines

* rcon cleanup

* more code cleanup

* bump version

* message about node.js requirement

Co-authored-by: destruc7i0n <destruc7i0n@users.noreply.github.com>
Diffstat (limited to '')
-rw-r--r--src/Rcon.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Rcon.ts b/src/Rcon.ts
index 180ad38..fc3b989 100644
--- a/src/Rcon.ts
+++ b/src/Rcon.ts
@@ -55,7 +55,7 @@ class Rcon {
   }
 
   public async auth (password: string): Promise<void> {
-    if (this.authed) { throw new Error('Already authed') }
+    if (this.authed) throw new Error('Already authed')
 
     if (this.connected){
       try {
@@ -88,7 +88,7 @@ class Rcon {
     const id = this.nextId
     this.nextId++
 
-    if (!this.connected) { throw new Error('Cannot send package while not connected') }
+    if (!this.connected) throw new Error('Cannot send package while not connected')
 
     const length = 14 + payload.length
     const buff = Buffer.alloc(length)