Skip to content

showNotification

Spicetify.showNotification shows a toast through Spotify’s snackbar. In a module, use client.notify.

function showNotification(message: React.ReactNode, isError?: boolean, msTimeout?: number): void;
ParameterTypeDescription
messageReact.ReactNodeThe message. A string renders as plain text.
isErrorboolean | undefinedShows the error style when true. Defaults to false.
msTimeoutnumber | undefinedHow long the toast stays, in milliseconds. Defaults to Spotify’s duration.
Spicetify.showNotification('Playlist saved');
Spicetify.showNotification('Could not reach the lyrics provider', true, 5000);