1.2.0 • Published 9 months ago

discord-user-popout-svelte v1.2.0

Weekly downloads
-
License
LGPL-3.0-only
Repository
github
Last release
9 months ago

Discord User Popout Svelte

npm npm

A Discord user pop-out component for SvelteKit

Installation

pnpm add discord-user-popout-svelte

Usage

<script>
    import { getUser, Profile } from "discord-user-popout-svelte";
    import { onMount } from "svelte";
    let user = null;

    onMount(async () => {
        user = await getUser(399862294143696897n);
    });
</script>

{#if user}
    <Profile {user} />
{/if}

!Note You need to be in the Lanyard Discord server for this to work

Developing

  1. Clone the repository

    git clone https://github.com/Ushie/discord-user-popout-svelte.git && cd discord-user-popout-svelte
  2. Install dependencies

    pnpm install
  3. Start development

    pnpm run dev
    
    # or start the server and open the app in a new browser tab
    pnpm run dev -- --open

    Everything inside src/lib is part of your library, everything inside src/routes can be used as a showcase or preview app.

Building

To build your library:

pnpm run package

Credits

1.2.0

9 months ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

0.0.1

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago