Discord
Permissions
discord
permission is required
ctx.discord
The ctx.discord
API allows your plugin to integrate with Discord Rich Presence, displaying what users are watching or reading in their Discord status.
Core Methods
setAnimeActivity
Sets Discord Rich Presence to show anime activity.
Parameters:
opts
: Object containing:id
: Number - AniList media IDtitle
: String - Anime title to displayimage
: String - Image URL for the animeisMovie
: Boolean - Whether the anime is a movieepisodeNumber
: Number - Current episode numberprogress
: Number - Progress in secondsduration
: Number - Duration in secondstotalEpisodes?
: Number - Number of episodes of the animecurrentEpisodeCount?
: Number - Number of playable episodesepisodeTitle?
: String - Episode title
updateAnimeActivity
Update the current anime activity progress set by setAnimeActivity
.
This is safe to call every second, Seanime will take care of batching updates
Parameters:
progress
: Number - Progress in secondsduration
: Number - Duration in secondspaused
: Boolean
setMangaActivity
Sets Discord Rich Presence to show manga reading activity.
Parameters:
opts
: Object containing:id
: Number - AniList media IDtitle
: String - Manga title to displayimage
: String - Image URL for the mangachapter
: String - Current chapter number or range
cancel
The cancel()
function terminates any ongoing Discord Rich Presence activity.
Last updated