Skip to content

Commit fb0cd85

Browse files
committed
docs: update example usage of setTheme to use string values instead of numbers
1 parent f8db4b1 commit fb0cd85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/conn/functions/setTheme.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import { Theme } from './getTheme';
2828
* await WPP.conn.setTheme(Theme.DARK);
2929
* await WPP.conn.setTheme(Theme.SYSTEM);
3030
*
31-
* // Using numbers (0 = light, 1 = dark, 2 = system)
32-
* await WPP.conn.setTheme(0);
33-
* await WPP.conn.setTheme(1);
34-
* await WPP.conn.setTheme(2);
31+
* // Using string ("light", "dark", "system")
32+
* await WPP.conn.setTheme("light");
33+
* await WPP.conn.setTheme("dark");
34+
* await WPP.conn.setTheme("system");
3535
* ```
3636
*
3737
* @category Config

0 commit comments

Comments
 (0)