xteamki commited on
Commit
37ce34d
·
verified ·
1 Parent(s): 11b3e52

Update plugins/_inline.py

Browse files
Files changed (1) hide show
  1. plugins/_inline.py +5 -8
plugins/_inline.py CHANGED
@@ -159,7 +159,7 @@ async def setting(event):
159
  Button.inline("•Stats•", data="alive"),
160
  Button.inline("•Uᴘᴅᴀᴛᴇ•", data="doupdate"),
161
  ],
162
- [Button.inline("« Bᴀᴄᴋ", data="open")],
163
  ],
164
  )
165
 
@@ -315,12 +315,9 @@ async def opner(event):
315
 
316
  @callback(data="tutupbotol", owner=False)
317
  async def tutupbotol(event):
318
- await event.delete()
319
-
320
-
321
- """await event.edit(
322
  buttons=Button.inline("🏡 Modules 🏡", data="uh_Official_"),
323
- )"""
324
 
325
 
326
  def page_num(index, key):
@@ -348,7 +345,7 @@ def page_num(index, key):
348
  data=f"uh_{key}_{index-1}",
349
  )
350
  )
351
- nav_buttons.append(Button.inline("×", data="tutupbotol"))
352
  if len(fl_) > 1:
353
  nav_buttons.append(
354
  Button.inline(
@@ -360,7 +357,7 @@ def page_num(index, key):
360
  if nav_buttons:
361
  new_.append(nav_buttons)
362
  elif not new_: # Tambahkan tombol close jika tidak ada tombol lain dan tidak ada item bantuan
363
- new_.append([Button.inline("×", data="tutupbotol")])
364
 
365
  return new_
366
 
 
159
  Button.inline("•Stats•", data="alive"),
160
  Button.inline("•Uᴘᴅᴀᴛᴇ•", data="doupdate"),
161
  ],
162
+ [Button.inline("🏡 Modules 🏡", data="uh_Official_")],
163
  ],
164
  )
165
 
 
315
 
316
  @callback(data="tutupbotol", owner=False)
317
  async def tutupbotol(event):
318
+ await event.edit(
 
 
 
319
  buttons=Button.inline("🏡 Modules 🏡", data="uh_Official_"),
320
+ )
321
 
322
 
323
  def page_num(index, key):
 
345
  data=f"uh_{key}_{index-1}",
346
  )
347
  )
348
+ nav_buttons.append(Button.inline("×", data="ownr"))
349
  if len(fl_) > 1:
350
  nav_buttons.append(
351
  Button.inline(
 
357
  if nav_buttons:
358
  new_.append(nav_buttons)
359
  elif not new_: # Tambahkan tombol close jika tidak ada tombol lain dan tidak ada item bantuan
360
+ new_.append([Button.inline("×", data="ownr")])
361
 
362
  return new_
363