@@ -86,8 +86,8 @@ async def verify_button_callback_green(self, button: discord.ui.Button, interact
86
86
verified_role = discord .utils .get (roles , id = self .bot .server_settings .verified_role ['verified' ])
87
87
await user .add_roles (verified_role )
88
88
89
-
90
- log_channels_verification_log = await self . bot . fetch_channel ( self .bot .server_settings .log_channel ["verification_log" ])
89
+ log_channels_verification_log = await self . bot . fetch_channel (
90
+ self .bot .server_settings .log_channel ["verification_log" ])
91
91
log_channels_join = await self .bot .fetch_channel (self .bot .server_settings .log_channel ["join_log" ])
92
92
93
93
await log_channels_verification_log .send (f"{ user .mention } has verified!" )
@@ -107,6 +107,7 @@ async def verify_button_callback_red_4(self, button: discord.ui.Button, interact
107
107
"""
108
108
await self .send_wrong_button_message_and_kick (interaction )
109
109
110
+
110
111
class VerifyHelper (commands .Cog ):
111
112
"""
112
113
this adds the button to the #verification channel so that people
@@ -129,8 +130,6 @@ async def add_verify_button(self, ctx):
129
130
130
131
await ctx .respond (button_message , view = AdminVerification (self .bot ))
131
132
132
-
133
-
134
133
async def cog_command_error (self , ctx : commands .Context , error : commands .CommandError ):
135
134
if isinstance (error , commands .MissingPermissions ):
136
135
await ctx .send (
@@ -141,7 +140,7 @@ async def cog_command_error(self, ctx: commands.Context, error: commands.Command
141
140
raise error
142
141
143
142
144
- class persistantButton (commands .Cog ):
143
+ class PersistentButton (commands .Cog ):
145
144
"""
146
145
Listener for Adding the verification as a persistent listener
147
146
"""
@@ -158,7 +157,4 @@ async def on_ready(self):
158
157
def setup (bot ):
159
158
"""Required."""
160
159
bot .add_cog (VerifyHelper (bot ))
161
- bot .add_cog (persistantButton (bot ))
162
-
163
-
164
-
160
+ bot .add_cog (PersistentButton (bot ))
0 commit comments