import React from "react"; const url = "https://discord.com/api/guilds/723409709306216498/widget.json"; const App = () => { const [status, setStatus] = React.useState(0); React.useEffect(() => { fetch(url) .then((r) => r.json()) .then((j) => setStatus(j.members[0].status)) }, []); if (status === "online") { return
}else{ if (status === "idle") { return
}else{ if (status === "dnd") { return
}else{ return
} } } }; export default App;