diff --git a/Package/Classes/Builders/CommandBuilder.luau b/Package/Classes/Builders/CommandBuilder.luau index 446c226..a6785d1 100644 --- a/Package/Classes/Builders/CommandBuilder.luau +++ b/Package/Classes/Builders/CommandBuilder.luau @@ -221,7 +221,7 @@ end @return Network.Resolvable ]=] function CommandBuilder.Prototype.toPayloadObject(self: CommandBuilder) - local permissions = "0" + local permissions = nil local options = {} for _, commandOption in self.options do diff --git a/Package/Classes/Network/DiscordGateway.luau b/Package/Classes/Network/DiscordGateway.luau index d4c4399..b1907b3 100644 --- a/Package/Classes/Network/DiscordGateway.luau +++ b/Package/Classes/Network/DiscordGateway.luau @@ -217,7 +217,7 @@ function DiscordGateway.Prototype.requestAsync( if ratelimitLimit and ratelimitRemaining and ratelimitResetAfter then if not self.endpointRateLimits[ratelimitApi] then self.endpointRateLimits[ratelimitApi] = ( - HTTPRatelimit.new(ratelimitLimit, ratelimitRemaining) :: unknown + HTTPRatelimit.new(ratelimitRemaining, ratelimitLimit) :: unknown ) :: HTTPRatelimit.HTTPRatelimit end