Skip to content
Snippets Groups Projects
Unverified Commit a67464c3 authored by dnns01's avatar dnns01 Committed by GitHub
Browse files

Merge pull request #32 from FU-Hagen-Discord/user-experience

User experience - Hilfstexte sind cool
parents ea7f11d6 857f844d
No related branches found
No related tags found
1 merge request!15Aktualisierung von News-Branch
...@@ -14,7 +14,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel ...@@ -14,7 +14,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
@app_commands.command(name="add", description="Erstelle eine Umfrage mit bis zu 20 Antwortmöglichkeiten.") @app_commands.command(name="add", description="Erstelle eine anonyme Umfrage mit bis zu 20 Antwortmöglichkeiten.")
@app_commands.describe(question="Welche Frage möchtest du stellen?", choice_a="1. Antwortmöglichkeit", @app_commands.describe(question="Welche Frage möchtest du stellen?", choice_a="1. Antwortmöglichkeit",
choice_b="2. Antwortmöglichkeit", choice_c="3. Antwortmöglichkeit", choice_b="2. Antwortmöglichkeit", choice_c="3. Antwortmöglichkeit",
choice_d="4. Antwortmöglichkeit", choice_e="5. Antwortmöglichkeit", choice_d="4. Antwortmöglichkeit", choice_e="5. Antwortmöglichkeit",
...@@ -38,7 +38,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel ...@@ -38,7 +38,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel
choice_k, choice_l, choice_m, choice_n, choice_o, choice_p, choice_q, choice_r, choice_s, choice_t]) if choice_k, choice_l, choice_m, choice_n, choice_o, choice_p, choice_q, choice_r, choice_s, choice_t]) if
choice] choice]
await interaction.response.send_message("Bereite Umfrage vor, bitte warten...", view=PollView()) await interaction.response.send_message("Bereite anonyme Umfrage vor, bitte warten...", view=PollView())
message = await interaction.original_response() message = await interaction.original_response()
poll = Poll.create(question=question, author=interaction.user.id, channel=interaction.channel_id, poll = Poll.create(question=question, author=interaction.user.id, channel=interaction.channel_id,
message=message.id) message=message.id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment