We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
class CommandList(Select): def __init__(self): options = [] options.append(SelectOption(label="メインコマンド", emoji="📰", description="メインコマンドです。たくさんのコマンド(ほぼネタ)があります。")) # 中略 async def callback(self, interaction: Interaction): embed = discord.Embed(title=f"helpコマンド:{self.values[0]}",color=0x1e90ff) if self.values[0] == "メインコマンド":
この部分のSelectOptionのlabelの文字列とifで使われてる文字列が別生成されてるので単純に打ち間違いリスクありそう あと単純にif文で書いているのは冗長なので変えたい感じですね Embedも静的な値で変更がなく毎回インスタンス生成する必要ないので固定値のEmbedを定義しておいてそれを引っ張ってくるなどに変えたほうが良い気がします
Sky-seed0215
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: