File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
from dotenv import load_dotenv
2
2
load_dotenv ()
3
3
# bot.py
4
- import discord , asyncio
4
+ import discord
5
+ import asyncio
5
6
from discord import app_commands
6
7
from views import AdminView , AuthView
7
8
from utils import TOKEN , error_handler
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ async def callback(self, interaction):
23
23
24
24
class GenPasswordTokenBtn (discord .ui .Button ):
25
25
def __init__ (self ):
26
- super ().__init__ (label = "Create a password token" , style = discord .ButtonStyle .premium )
26
+ super ().__init__ (label = "Create a password token" , style = discord .ButtonStyle .blurple )
27
27
28
28
@app_commands .checks .has_permissions (administrator = True )
29
29
async def callback (self , interaction ):
@@ -143,9 +143,10 @@ class AdminView(discord.ui.View):
143
143
def __init__ (self ):
144
144
super ().__init__ (timeout = GENERAL_TIMEOUT )
145
145
self .add_item (GenTokensBtn ())
146
+ self .add_item (GenPasswordTokenBtn ())
146
147
self .add_item (RevokeTokensBtn ())
147
148
self .add_item (EmailTokensBtn ())
148
- self . add_item ( GenPasswordTokenBtn ())
149
+
149
150
150
151
class AuthBtn (discord .ui .Button ):
151
152
def __init__ (self ):
You can’t perform that action at this time.
0 commit comments