/vue-lanyard

🧩 Lanyard composable for Discord presence

Primary LanguageTypeScriptMIT LicenseMIT

🧩vue-lanyard

Vue hook for lanyard for tracking your Discord presence through REST or websockets.

License Build Version Downloads

🦄 Usage

<script setup lang="ts">
import { useLanyard } from 'vue-lanyard';
					
const DISCORD_ID = 'XXXXXXXXXXXXXXXXXX';

const { data } = useLanyard(DISCORD_ID);
</script>

❗ Types

All types used for this library are also readily available & can be used as follows:

import type { Data, Activity, ... } from 'vue-lanyard';

⚠️ Requirements

Currently this project is built around using swrv which relies on @vue/composition-api. As such, Vue 2.x support is currently not functioning, but it is currently in the works.

❤️ Acknowledgements