Compare commits

..

No commits in common. "090f217f93dbc5a0af3c80cc2013484391f6f47b" and "5f8ae787f0242476b47ddd69af0a289ad4607537" have entirely different histories.

3 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,7 @@ class MassMoveCommand(DiscordCommandABC):
self,
ctx: Context,
channel_to: discord.VoiceChannel,
channel_from: Transform[discord.VoiceChannel, VoiceChannelTransformer] = None,
channel_from: Transform[str, VoiceChannelTransformer] = None,
):
self._logger.debug(__name__, f"Received command mass-move {ctx}")

View File

@ -25,7 +25,7 @@ class VoiceChannelTransformer(Transformer):
return [
app_commands.Choice(
name=f"{vc.name}" if vc.category is None else f"{vc.name}: {vc.category.name}",
value=str(vc.id),
value=vc.name,
)
for vc in get_client_utils().get_auto_complete_list(voice_channels, current, lambda x: x.name)
]

View File

@ -64,8 +64,6 @@ class ScheduledEventsWatcher(TaskABC):
elif interval == ScheduledEventIntervalEnum.yearly:
ts = ts + timedelta(days=365)
if ts < now:
return self._append_interval(interval, ts)
return ts
@tasks.loop(hours=24)