From 6fad0ff189eea96867b2b79f3672b21f8d3acb3f Mon Sep 17 00:00:00 2001 From: cyteon Date: Thu, 25 Jul 2024 17:31:17 +0200 Subject: [PATCH] i keep forgetting to change the version num --- gleam.toml | 2 +- src/discord_gleam/http/request.gleam | 2 +- src/discord_gleam/ws/event_loop.gleam | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gleam.toml b/gleam.toml index d1b762c..4f6a958 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "discord_gleam" -version = "0.0.3" +version = "0.0.4" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager. diff --git a/src/discord_gleam/http/request.gleam b/src/discord_gleam/http/request.gleam index 17be327..1ff2636 100644 --- a/src/discord_gleam/http/request.gleam +++ b/src/discord_gleam/http/request.gleam @@ -10,7 +10,7 @@ pub fn new(method: http.Method, path: String) -> request.Request(String) { |> request.prepend_header("accept", "application/json") |> request.prepend_header( "User-Agent", - "DiscordBot (https://github.com/cyteon/discord_gleam, 0.0.3)", + "DiscordBot (https://github.com/cyteon/discord_gleam, 0.0.4)", ) } diff --git a/src/discord_gleam/ws/event_loop.gleam b/src/discord_gleam/ws/event_loop.gleam index 3c7668e..8793c86 100644 --- a/src/discord_gleam/ws/event_loop.gleam +++ b/src/discord_gleam/ws/event_loop.gleam @@ -34,7 +34,7 @@ pub fn main(bot: bot.Bot, event_handlers: List(event_handler.EventHandler)) { |> request.set_path("/?v=10&encoding=json") |> request.set_header( "User-Agent", - "DiscordBot (https://github.com/cyteon/discord_gleam, 0.0.3)", + "DiscordBot (https://github.com/cyteon/discord_gleam, 0.0.4)", ) |> request.set_header("Host", "gateway.discord.gg") |> request.set_header("Connection", "Upgrade")