Pass config along so that nominate can add to database with election cycle name.
This commit is contained in:
@@ -170,7 +170,7 @@ class ElectionCycle:
|
||||
for index, message in enumerate(messages):
|
||||
# if last item, add the nominate button
|
||||
if index + 1 == len(messages):
|
||||
await election_channel.send(message, view=NominateView())
|
||||
await election_channel.send(message, view=NominateView(self.config))
|
||||
else:
|
||||
await election_channel.send(message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user