Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.
/ vue-lanyard Public archive

🧩 Lanyard composable for Discord presence

License

Notifications You must be signed in to change notification settings

NuroDev/vue-lanyard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩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