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;| Parameter | Type | Description |
|---|---|---|
message | React.ReactNode | The message. A string renders as plain text. |
isError | boolean | undefined | Shows the error style when true. Defaults to false. |
msTimeout | number | undefined | How 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);