diff --git a/docs.sh b/docs.sh index 705b6aa..56dc63f 100755 --- a/docs.sh +++ b/docs.sh @@ -1,11 +1,12 @@ #!/bin/bash +rm -rf docs DFLAGS='-c -o- -Df__dummy.html -Xfdocs.json' dub build dub fetch scod dub run scod -- filter --min-protection=Protected docs.json dub run scod -- generate-html --navigation-type=ModuleTree docs.json docs -# pkg_path=$(dub list | sed -n 's|.*scod.*: ||p') -# rsync -ru "$pkg_path"public/ docs/ +pkg_path=$(dub list | sed -n 's|.*scod.*: ||p' | head -n1) +rsync -ru "$pkg_path"public/ docs/ if [ ! -z "${GH_TOKEN:-}" ]; then pushd docs diff --git a/src/dscord/gateway/client.d b/src/dscord/gateway/client.d index 96ebb52..a3c87ee 100644 --- a/src/dscord/gateway/client.d +++ b/src/dscord/gateway/client.d @@ -62,6 +62,7 @@ class GatewayClient { /** Params: + client = base client eventTracking = if true, log information about events recieved */ this(Client client, bool eventTracking = false) { diff --git a/src/dscord/types/util.d b/src/dscord/types/util.d index bfce529..a8b7a88 100644 --- a/src/dscord/types/util.d +++ b/src/dscord/types/util.d @@ -85,7 +85,7 @@ class MessageBuffer { raw = raw.replace("`", "").replace("\n", ""); } - if (this.length + raw.length > this.realMaxLength) { + if (this.length + raw.length > this.maxLength) { return false; }