File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,7 @@ class RPCClient extends EventEmitter {
534534 assets,
535535 party,
536536 secrets,
537+ buttons : args . buttons ,
537538 instance : ! ! args . instance ,
538539 } ,
539540 } ) ;
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ const client = new Client({
1313} ) ;
1414
1515client . on ( 'ready' , async ( ) => {
16- await client . selectTextChannel ( '201803114049699849' ) ;
17- console . log ( await client . getChannel ( '201803114049699849' ) ) ;
18- client . destroy ( )
19- . then ( ( ) => {
20- console . log ( 'closed!' ) ;
21- } ) ;
16+ await client . setActivity ( {
17+ buttons : [
18+ { label : 'B1' , url : 'https://snek.dev/b1' } ,
19+ { label : 'B2' , url : 'https://snek.dev/b2' } ,
20+ ] ,
21+ } ) ;
2222} ) ;
2323
2424client . login ( require ( './auth' ) ) . catch ( console . error ) ;
You can’t perform that action at this time.
0 commit comments