Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dnns01
root
Commits
857f844d
Unverified
Commit
857f844d
authored
9 months ago
by
Lou-M
Committed by
GitHub
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
poll.py: Users auf Anonymität hinweisen
reine Textänderungen
parent
ea7f11d6
Branches
Branches containing commit
No related tags found
2 merge requests
!32
User experience - Hilfstexte sind cool
,
!15
Aktualisierung von News-Branch
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extensions/poll.py
+2
-2
2 additions, 2 deletions
extensions/poll.py
with
2 additions
and
2 deletions
extensions/poll.py
+
2
−
2
View file @
857f844d
...
...
@@ -14,7 +14,7 @@ class Polls(commands.GroupCog, name="poll", description="Handle Polls in Channel
def
__init__
(
self
,
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
"
,
choice_b
=
"
2. Antwortmöglichkeit
"
,
choice_c
=
"
3. 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
choice_k
,
choice_l
,
choice_m
,
choice_n
,
choice_o
,
choice_p
,
choice_q
,
choice_r
,
choice_s
,
choice_t
])
if
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
()
poll
=
Poll
.
create
(
question
=
question
,
author
=
interaction
.
user
.
id
,
channel
=
interaction
.
channel_id
,
message
=
message
.
id
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment