Update deprecated use of TextInput.label (#6612)

This commit is contained in:
Jakub Kuczys 2025-09-04 21:12:26 +02:00 committed by GitHub
parent c7651da2f9
commit 8507b0165f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -393,19 +393,23 @@ class SetApiModal(discord.ui.Modal):
super().__init__(title=self.title)
self.service_input = discord.ui.TextInput(
label=_("Service"),
self.service_input = discord.ui.Label(
text=_("Service"),
component=discord.ui.TextInput(
required=True,
placeholder=_placeholder_service,
default=self.default_service,
),
)
self.token_input = discord.ui.TextInput(
label=self.keys_label,
self.token_input = discord.ui.Label(
text=self.keys_label,
component=discord.ui.TextInput(
style=discord.TextStyle.long,
required=True,
placeholder=_placeholder_token,
default=self.default_keys_fmt,
),
)
if self.default_service is None: