Skip to content
New issue

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

Config機能 #22

Open
sevenc-nanashi opened this issue May 19, 2021 · 2 comments
Open

Config機能 #22

sevenc-nanashi opened this issue May 19, 2021 · 2 comments

Comments

@sevenc-nanashi
Copy link
Member

dispander.config["color"] = discord.Color.blue()  # 埋め込みの色
dispander.config["footer_format"] = "{guild.name} / {channel.name}"  #フッターのフォーマット
dispander.config["allow_cross_guuld"] = lambda m, m2: m.author.id == m2.author.id  # サーバー間展開。

関数を渡すと第一引数にURLのメッセージ、第二引数に展開するメッセージが渡される感じ。

@1ntegrale9
Copy link
Member

色はやっても良さそう

フッターのフォーマットとサーバー間展開は色々考慮する余地があるかな〜

@sevenc-nanashi
Copy link
Member Author

実装自体は楽かな?
フォーマットはstr.formatとキーワード引数使えばいいし

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants