From 8137409dae214e79e2d897e0ba516e85a42c16bb Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 12 Aug 2021 12:16:24 +0100 Subject: [PATCH 1/5] Fix search scroll. Add bot badge. --- external/lang | 2 +- package.json | 2 +- src/components/common/user/UserShort.tsx | 31 ++++++ src/components/navigation/right/Search.tsx | 104 +++++++++++---------- yarn.lock | 8 +- 5 files changed, 90 insertions(+), 57 deletions(-) diff --git a/external/lang b/external/lang index f20556de..7be90cf4 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit f20556de7648d4c600ef163b909d2f0141d25ded +Subproject commit 7be90cf44ba08d235ae52d7dc6073d8f9347232b diff --git a/package.json b/package.json index bf6f3e31..ef118798 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "react-virtuoso": "^1.10.4", "redux": "^4.1.0", "revolt-api": "^0.5.2-alpha.0", - "revolt.js": "5.0.0-alpha.21", + "revolt.js": "5.0.1-alpha.0", "rimraf": "^3.0.2", "sass": "^1.35.1", "shade-blend-color": "^1.0.0", diff --git a/src/components/common/user/UserShort.tsx b/src/components/common/user/UserShort.tsx index c2d760dc..4f9c15f8 100644 --- a/src/components/common/user/UserShort.tsx +++ b/src/components/common/user/UserShort.tsx @@ -1,6 +1,7 @@ import { observer } from "mobx-react-lite"; import { useParams } from "react-router-dom"; import { User } from "revolt.js/dist/maps/Users"; +import styled from "styled-components"; import { Text } from "preact-i18n"; @@ -9,6 +10,21 @@ import { useClient } from "../../../context/revoltjs/RevoltClient"; import UserIcon from "./UserIcon"; +const BotBadge = styled.div` + display: inline-block; + + height: 1.4em; + padding: 0 4px; + font-size: 0.6em; + user-select: none; + margin-inline-start: 2px; + text-transform: uppercase; + + color: var(--foreground); + background: var(--accent); + border-radius: calc(var(--border-radius) / 2); +`; + export const Username = observer( ({ user, @@ -51,6 +67,21 @@ export const Username = observer( } } + if (user?.bot) { + return ( + <> + + {username ?? ( + + )} + + + + + + ); + } + return ( {username ?? } diff --git a/src/components/navigation/right/Search.tsx b/src/components/navigation/right/Search.tsx index 1926a54f..d6e2b2fc 100644 --- a/src/components/navigation/right/Search.tsx +++ b/src/components/navigation/right/Search.tsx @@ -13,7 +13,7 @@ import InputBox from "../../ui/InputBox"; import Overline from "../../ui/Overline"; import Preloader from "../../ui/Preloader"; -import { GenericSidebarBase } from "../SidebarBase"; +import { GenericSidebarBase, GenericSidebarList } from "../SidebarBase"; type SearchState = | { @@ -100,57 +100,59 @@ export function SearchSidebar({ close }: Props) { return ( - - - « back to members - - - - - e.key === "Enter" && search()} - onChange={(e) => setQuery(e.currentTarget.value)} - /> -
- {["Latest", "Oldest", "Relevance"].map((key) => ( - - ))} -
- {state.type === "loading" && } - {state.type === "results" && ( -
- {state.results.map((message) => { - let href = ""; - if (channel?.channel_type === "TextChannel") { - href += `/server/${channel.server_id}`; - } - - href += `/channel/${message.channel_id}/${message._id}`; - - return ( - -
- -
- - ); - })} + + + + « back to members + + + + + e.key === "Enter" && search()} + onChange={(e) => setQuery(e.currentTarget.value)} + /> +
+ {["Latest", "Oldest", "Relevance"].map((key) => ( + + ))}
- )} -
+ {state.type === "loading" && } + {state.type === "results" && ( +
+ {state.results.map((message) => { + let href = ""; + if (channel?.channel_type === "TextChannel") { + href += `/server/${channel.server_id}`; + } + + href += `/channel/${message.channel_id}/${message._id}`; + + return ( + +
+ +
+ + ); + })} +
+ )} + +
); } diff --git a/yarn.lock b/yarn.lock index 7d7fe555..af6d1d4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3605,10 +3605,10 @@ revolt-api@^0.5.2-alpha.0: resolved "https://registry.yarnpkg.com/revolt-api/-/revolt-api-0.5.2-alpha.0.tgz#a41f44ee38622636c9b5b5843f9e2798a79f00d3" integrity sha512-VI/o4nQTPXrDCVdFpZFfZfj7Q4nunj62gftdmYJtuSmXx+6eN2Nve7QQZjNt6UIH6Dc/IDgiFDcBdafBF9YXug== -revolt.js@5.0.0-alpha.21: - version "5.0.0-alpha.21" - resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.0-alpha.21.tgz#24e01dbcb2887dadcb480732a1b9b8f167c557b5" - integrity sha512-UNRJRCyKoOFKULRYIWFZ3QN4th6s/sgMpQXtqaitVMtVBo6BJJvUT9wUM3WV08pN1acr3EPwnVre6sOtKM7khg== +revolt.js@5.0.1-alpha.0: + version "5.0.1-alpha.0" + resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.0.tgz#3c79313ffe595ba5a4881692d5f3d2f5f6237bdb" + integrity sha512-fdYQgYA/aSx7JZn7yAwqb/8hix+nI/AErt6oAkb412qAyTFxHD7LHeUWofRMJ+I0rAreQUYUwtC5FJH82S58pQ== dependencies: axios "^0.19.2" eventemitter3 "^4.0.7" From c27f596d4007dde3eff15c3eaee8ac21f633035c Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 12 Aug 2021 14:40:13 +0100 Subject: [PATCH 2/5] Show user flags and the bot owner. --- package.json | 2 +- .../popovers/UserProfile.module.scss | 54 ++++++++--------- .../intermediate/popovers/UserProfile.tsx | 58 ++++++++++++++++++- yarn.lock | 8 +-- 4 files changed, 89 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index ef118798..630bea65 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "react-virtuoso": "^1.10.4", "redux": "^4.1.0", "revolt-api": "^0.5.2-alpha.0", - "revolt.js": "5.0.1-alpha.0", + "revolt.js": "5.0.1-alpha.1", "rimraf": "^3.0.2", "sass": "^1.35.1", "shade-blend-color": "^1.0.0", diff --git a/src/context/intermediate/popovers/UserProfile.module.scss b/src/context/intermediate/popovers/UserProfile.module.scss index 51f7ca73..a45d71c3 100644 --- a/src/context/intermediate/popovers/UserProfile.module.scss +++ b/src/context/intermediate/popovers/UserProfile.module.scss @@ -136,34 +136,34 @@ a { min-width: 0; } +} - .entry { - gap: 8px; +.entry { + gap: 8px; + min-width: 0; + padding: 12px; + display: flex; + cursor: pointer; + align-items: center; + transition: background-color 0.1s; + color: var(--secondary-foreground); + border-radius: var(--border-radius); + background-color: var(--secondary-background); + + &:hover { + background-color: var(--primary-background); + } + + img { + width: 32px; + height: 32px; + border-radius: 50%; + } + + span { min-width: 0; - padding: 12px; - display: flex; - cursor: pointer; - align-items: center; - transition: background-color 0.1s; - color: var(--secondary-foreground); - border-radius: var(--border-radius); - background-color: var(--secondary-background); - - &:hover { - background-color: var(--primary-background); - } - - img { - width: 32px; - height: 32px; - border-radius: 50%; - } - - span { - min-width: 0; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } } diff --git a/src/context/intermediate/popovers/UserProfile.tsx b/src/context/intermediate/popovers/UserProfile.tsx index 814460a3..12fd4e6d 100644 --- a/src/context/intermediate/popovers/UserProfile.tsx +++ b/src/context/intermediate/popovers/UserProfile.tsx @@ -13,9 +13,11 @@ import { useContext, useEffect, useLayoutEffect, useState } from "preact/hooks"; import ChannelIcon from "../../../components/common/ChannelIcon"; import Tooltip from "../../../components/common/Tooltip"; import UserIcon from "../../../components/common/user/UserIcon"; +import { Username } from "../../../components/common/user/UserShort"; import UserStatus from "../../../components/common/user/UserStatus"; import IconButton from "../../../components/ui/IconButton"; import Modal from "../../../components/ui/Modal"; +import Overline from "../../../components/ui/Overline"; import Preloader from "../../../components/ui/Preloader"; import Markdown from "../../../components/markdown/Markdown"; @@ -112,7 +114,9 @@ export const UserProfile = observer( const backgroundURL = profile && client.generateFileURL(profile.background, { width: 1000 }, true); + const badges = user.badges ?? 0; + const flags = user.flags ?? 0; return ( {tab === "profile" && (
- {!(profile?.content || badges > 0) && ( + {!( + profile?.content || + badges > 0 || + flags > 0 || + user.bot + ) && (
)} + {flags & 1 ? ( + /** ! FIXME: i18n this area */ + + User is suspended + + ) : undefined} + {flags & 2 ? ( + + User deleted their account + + ) : undefined} + {flags & 4 ? ( + + User is banned + + ) : undefined} + {user.bot ? ( + <> +
+ bot owner +
+
+ user.bot && + openScreen({ + id: "profile", + user_id: user.bot.owner, + }) + } + className={styles.entry} + key={user.bot.owner}> + + + + +
+ + ) : undefined} {badges > 0 && (
diff --git a/yarn.lock b/yarn.lock index af6d1d4c..a1dc21b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3605,10 +3605,10 @@ revolt-api@^0.5.2-alpha.0: resolved "https://registry.yarnpkg.com/revolt-api/-/revolt-api-0.5.2-alpha.0.tgz#a41f44ee38622636c9b5b5843f9e2798a79f00d3" integrity sha512-VI/o4nQTPXrDCVdFpZFfZfj7Q4nunj62gftdmYJtuSmXx+6eN2Nve7QQZjNt6UIH6Dc/IDgiFDcBdafBF9YXug== -revolt.js@5.0.1-alpha.0: - version "5.0.1-alpha.0" - resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.0.tgz#3c79313ffe595ba5a4881692d5f3d2f5f6237bdb" - integrity sha512-fdYQgYA/aSx7JZn7yAwqb/8hix+nI/AErt6oAkb412qAyTFxHD7LHeUWofRMJ+I0rAreQUYUwtC5FJH82S58pQ== +revolt.js@5.0.1-alpha.1: + version "5.0.1-alpha.1" + resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.1.tgz#9af021d05d3cd098d0383c64e1fe10c70f2fb07a" + integrity sha512-QIbnR25ICey8iopMzu0FBueo7gd0ddZQVoyyC++jg4Rvt0zlcAHJfx/YTapZxzTFo0/u/YEgD68GuTh8ybmFdg== dependencies: axios "^0.19.2" eventemitter3 "^4.0.7" From 237a0024dfcbc09537a3c0f59ca74d1aef20e21b Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 12 Aug 2021 15:29:19 +0100 Subject: [PATCH 3/5] Temporary bot menu. --- external/lang | 2 +- package.json | 4 +- .../popovers/ServerIdentityModal.tsx | 4 + src/pages/settings/Settings.tsx | 13 +- src/pages/settings/panes/MyBots.tsx | 150 ++++++++++++++++++ yarn.lock | 16 +- 6 files changed, 177 insertions(+), 12 deletions(-) create mode 100644 src/pages/settings/panes/MyBots.tsx diff --git a/external/lang b/external/lang index 7be90cf4..cec5d62b 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 7be90cf44ba08d235ae52d7dc6073d8f9347232b +Subproject commit cec5d62b11fa52bafea39ee905a8354fb840a078 diff --git a/package.json b/package.json index 630bea65..e01c977d 100644 --- a/package.json +++ b/package.json @@ -115,8 +115,8 @@ "react-virtualized-auto-sizer": "^1.0.5", "react-virtuoso": "^1.10.4", "redux": "^4.1.0", - "revolt-api": "^0.5.2-alpha.0", - "revolt.js": "5.0.1-alpha.1", + "revolt-api": "0.5.2-alpha.1", + "revolt.js": "5.0.1-alpha.2", "rimraf": "^3.0.2", "sass": "^1.35.1", "shade-blend-color": "^1.0.0", diff --git a/src/context/intermediate/popovers/ServerIdentityModal.tsx b/src/context/intermediate/popovers/ServerIdentityModal.tsx index eb6e449e..3ef55266 100644 --- a/src/context/intermediate/popovers/ServerIdentityModal.tsx +++ b/src/context/intermediate/popovers/ServerIdentityModal.tsx @@ -7,6 +7,7 @@ import Button from "../../../components/ui/Button"; import InputBox from "../../../components/ui/InputBox"; import Modal from "../../../components/ui/Modal"; import Overline from "../../../components/ui/Overline"; +import Tip from "../../../components/ui/Tip"; import { FileUploader } from "../../revoltjs/FileUploads"; import { useClient } from "../../revoltjs/RevoltClient"; @@ -30,6 +31,9 @@ export const ServerIdentityModal = observer(({ server, onClose }: Props) => { return ( + + This section is under construction. + Nickname

, }, { - divider: true, id: "experiments", icon: , title: , }, + { + divider: true, + category: "revolt", + id: "bots", + icon: , + title: , + }, { id: "feedback", icon: , @@ -148,6 +156,9 @@ export default function Settings() { + + + diff --git a/src/pages/settings/panes/MyBots.tsx b/src/pages/settings/panes/MyBots.tsx new file mode 100644 index 00000000..14b8df9c --- /dev/null +++ b/src/pages/settings/panes/MyBots.tsx @@ -0,0 +1,150 @@ +import { observer } from "mobx-react-lite"; +import { Bot } from "revolt-api/types/Bots"; + +import { useEffect, useState } from "preact/hooks"; + +import { useClient } from "../../../context/revoltjs/RevoltClient"; + +import UserShort from "../../../components/common/user/UserShort"; +import Button from "../../../components/ui/Button"; +import Checkbox from "../../../components/ui/Checkbox"; +import InputBox from "../../../components/ui/InputBox"; +import Overline from "../../../components/ui/Overline"; +import Tip from "../../../components/ui/Tip"; + +interface Data { + _id: string; + username: string; + public: boolean; + interactions_url?: string; +} + +function BotEditor({ bot }: { bot: Data }) { + const client = useClient(); + const [data, setData] = useState(bot); + + function save() { + const changes: Record = {}; + if (data.username !== bot.username) changes.name = data.username; + if (data.public !== bot.public) changes.public = data.public; + if (data.interactions_url !== bot.interactions_url) + changes.interactions_url = data.interactions_url; + + client.bots.edit(bot._id, changes); + } + + return ( +

+

+ + setData({ ...data, username: e.currentTarget.value }) + } + /> +

+

+ setData({ ...data, public: v })}> + is public + +

+

interactions url: (reserved for the future)

+

+ + setData({ + ...data, + interactions_url: e.currentTarget.value, + }) + } + /> +

+ +
+ ); +} + +export const MyBots = observer(() => { + const client = useClient(); + const [bots, setBots] = useState(undefined); + + useEffect(() => { + client.bots.fetchOwned().then(({ bots }) => setBots(bots)); + // eslint-disable-next-line + }, []); + + const [name, setName] = useState(""); + + return ( +
+ + This section is under construction. + + create a new bot +

+ setName(e.currentTarget.value)} + /> +

+

+ +

+ my bots + {bots?.map((bot) => { + const user = client.users.get(bot._id); + return ( +
+ +

+ token:{" "} + + {bot.token} + +

+ + +
+ ); + })} +
+ ); +}); diff --git a/yarn.lock b/yarn.lock index a1dc21b4..b3c04822 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3600,15 +3600,15 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -revolt-api@^0.5.2-alpha.0: - version "0.5.2-alpha.0" - resolved "https://registry.yarnpkg.com/revolt-api/-/revolt-api-0.5.2-alpha.0.tgz#a41f44ee38622636c9b5b5843f9e2798a79f00d3" - integrity sha512-VI/o4nQTPXrDCVdFpZFfZfj7Q4nunj62gftdmYJtuSmXx+6eN2Nve7QQZjNt6UIH6Dc/IDgiFDcBdafBF9YXug== +revolt-api@0.5.2-alpha.1: + version "0.5.2-alpha.1" + resolved "https://registry.yarnpkg.com/revolt-api/-/revolt-api-0.5.2-alpha.1.tgz#2164d04cd5581267ce59142557666bd386bc85c4" + integrity sha512-3OrjYCDNPkJ+yO9d87NJvuUDAbungEbUfrfHlvFwV8hJze/RMkuYUTFWe1HyBMwBC7F/yWQK+2V7IoifC5STmw== -revolt.js@5.0.1-alpha.1: - version "5.0.1-alpha.1" - resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.1.tgz#9af021d05d3cd098d0383c64e1fe10c70f2fb07a" - integrity sha512-QIbnR25ICey8iopMzu0FBueo7gd0ddZQVoyyC++jg4Rvt0zlcAHJfx/YTapZxzTFo0/u/YEgD68GuTh8ybmFdg== +revolt.js@5.0.1-alpha.2: + version "5.0.1-alpha.2" + resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.2.tgz#ec4876da57367453ef38d6c9bf84828c5f068b74" + integrity sha512-QBulAUAqBGCY62jJjpKa/+y4QBjTEzPfHl/R9NY6wJ/nCfYX7/leOFWb1PWJ09KerPfbYEiQvQYk8YYFF9HptQ== dependencies: axios "^0.19.2" eventemitter3 "^4.0.7" From 01cdce492e17d56fdbceaa61dd73e57596b89540 Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 12 Aug 2021 16:07:41 +0100 Subject: [PATCH 4/5] Add bot invite menu. --- external/lang | 2 +- src/pages/RevoltApp.tsx | 2 + src/pages/invite/InviteBot.tsx | 80 +++++++++++++++++++++++++++++ src/pages/settings/panes/MyBots.tsx | 10 ++++ 4 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 src/pages/invite/InviteBot.tsx diff --git a/external/lang b/external/lang index cec5d62b..b27044c3 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit cec5d62b11fa52bafea39ee905a8354fb840a078 +Subproject commit b27044c332ca419d22edbe9e7bf465a665398999 diff --git a/src/pages/RevoltApp.tsx b/src/pages/RevoltApp.tsx index bc309c30..7d861746 100644 --- a/src/pages/RevoltApp.tsx +++ b/src/pages/RevoltApp.tsx @@ -20,6 +20,7 @@ import Developer from "./developer/Developer"; import Friends from "./friends/Friends"; import Home from "./home/Home"; import Invite from "./invite/Invite"; +import InviteBot from "./invite/InviteBot"; import ChannelSettings from "./settings/ChannelSettings"; import ServerSettings from "./settings/ServerSettings"; import Settings from "./settings/Settings"; @@ -119,6 +120,7 @@ export default function App() { + diff --git a/src/pages/invite/InviteBot.tsx b/src/pages/invite/InviteBot.tsx new file mode 100644 index 00000000..dd7f72a0 --- /dev/null +++ b/src/pages/invite/InviteBot.tsx @@ -0,0 +1,80 @@ +import { useParams } from "react-router-dom"; +import { Route } from "revolt.js/dist/api/routes"; + +import { useEffect, useState } from "preact/hooks"; + +import { useClient } from "../../context/revoltjs/RevoltClient"; + +import UserIcon from "../../components/common/user/UserIcon"; +import Button from "../../components/ui/Button"; +import ComboBox from "../../components/ui/ComboBox"; +import Overline from "../../components/ui/Overline"; +import Preloader from "../../components/ui/Preloader"; + +export default function InviteBot() { + const { id } = useParams<{ id: string }>(); + const client = useClient(); + const [data, setData] = + useState["response"]>(); + + useEffect(() => { + client.bots.fetchPublic(id).then(setData); + // eslint-disable-next-line + }, []); + + const [server, setServer] = useState("none"); + const [group, setGroup] = useState("none"); + + return ( +
+ {typeof data === "undefined" && } + {data && ( + <> + +

{data.username}

+ {data.description &&

{data.description}

} + Add to server + setServer(e.currentTarget.value)}> + + {[...client.servers.values()].map((server) => ( + + ))} + + + Add to group + setGroup(e.currentTarget.value)}> + + {[...client.channels.values()] + .filter((x) => x.channel_type === "Group") + .map((channel) => ( + + ))} + + + + )} +
+ ); +} diff --git a/src/pages/settings/panes/MyBots.tsx b/src/pages/settings/panes/MyBots.tsx index 14b8df9c..5e558954 100644 --- a/src/pages/settings/panes/MyBots.tsx +++ b/src/pages/settings/panes/MyBots.tsx @@ -3,6 +3,7 @@ import { Bot } from "revolt-api/types/Bots"; import { useEffect, useState } from "preact/hooks"; +import { useIntermediate } from "../../../context/intermediate/Intermediate"; import { useClient } from "../../../context/revoltjs/RevoltClient"; import UserShort from "../../../components/common/user/UserShort"; @@ -77,6 +78,7 @@ export const MyBots = observer(() => { }, []); const [name, setName] = useState(""); + const { writeClipboard } = useIntermediate(); return (
@@ -142,6 +144,14 @@ export const MyBots = observer(() => { }> delete +
); })} From f548d91a7c7c7763b875f1f66bc734304679f5eb Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 12 Aug 2021 16:17:37 +0100 Subject: [PATCH 5/5] Bump revolt.js version. --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index e01c977d..27dc0a6b 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "react-virtuoso": "^1.10.4", "redux": "^4.1.0", "revolt-api": "0.5.2-alpha.1", - "revolt.js": "5.0.1-alpha.2", + "revolt.js": "5.0.1-alpha.3", "rimraf": "^3.0.2", "sass": "^1.35.1", "shade-blend-color": "^1.0.0", diff --git a/yarn.lock b/yarn.lock index b3c04822..53ec96e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3605,10 +3605,10 @@ revolt-api@0.5.2-alpha.1: resolved "https://registry.yarnpkg.com/revolt-api/-/revolt-api-0.5.2-alpha.1.tgz#2164d04cd5581267ce59142557666bd386bc85c4" integrity sha512-3OrjYCDNPkJ+yO9d87NJvuUDAbungEbUfrfHlvFwV8hJze/RMkuYUTFWe1HyBMwBC7F/yWQK+2V7IoifC5STmw== -revolt.js@5.0.1-alpha.2: - version "5.0.1-alpha.2" - resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.2.tgz#ec4876da57367453ef38d6c9bf84828c5f068b74" - integrity sha512-QBulAUAqBGCY62jJjpKa/+y4QBjTEzPfHl/R9NY6wJ/nCfYX7/leOFWb1PWJ09KerPfbYEiQvQYk8YYFF9HptQ== +revolt.js@5.0.1-alpha.3: + version "5.0.1-alpha.3" + resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-5.0.1-alpha.3.tgz#986d2ec21d751067d95c4f444f81b922df566cde" + integrity sha512-h1xlaBvKyTS+wF9Oe4rtjuTe5plrOpYMp9qskqxMeNIoVu9VuJjHU+n9YUWANbgn7Ji9sxPHZrco5+0+bLOCcg== dependencies: axios "^0.19.2" eventemitter3 "^4.0.7"