Skip to content

Commit 28cb093

Browse files
committed
minor fix
1 parent cb647c8 commit 28cb093

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from dotenv import load_dotenv
22
load_dotenv()
33
# bot.py
4-
import discord, asyncio
4+
import discord
5+
import asyncio
56
from discord import app_commands
67
from views import AdminView, AuthView
78
from utils import TOKEN, error_handler

views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def callback(self, interaction):
2323

2424
class GenPasswordTokenBtn(discord.ui.Button):
2525
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)
2727

2828
@app_commands.checks.has_permissions(administrator=True)
2929
async def callback(self, interaction):
@@ -143,9 +143,10 @@ class AdminView(discord.ui.View):
143143
def __init__(self):
144144
super().__init__(timeout=GENERAL_TIMEOUT)
145145
self.add_item(GenTokensBtn())
146+
self.add_item(GenPasswordTokenBtn())
146147
self.add_item(RevokeTokensBtn())
147148
self.add_item(EmailTokensBtn())
148-
self.add_item(GenPasswordTokenBtn())
149+
149150

150151
class AuthBtn(discord.ui.Button):
151152
def __init__(self):

0 commit comments

Comments
 (0)