diff options
Diffstat (limited to 'src/commands/today/mod.rs')
| -rw-r--r-- | src/commands/today/mod.rs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/commands/today/mod.rs b/src/commands/today/mod.rs index 2c47e83..6f4dcf6 100644 --- a/src/commands/today/mod.rs +++ b/src/commands/today/mod.rs @@ -16,7 +16,13 @@ use crate::{ HttpKey, PlaybackKey, }, - commands::playback::songbird, + commands::{ + playback, + playback::{ + songbird, + InvokeInfo, + }, + }, util, PoiseContext, }; @@ -136,7 +142,12 @@ pub async fn today(ctx: PoiseContext<'_>, #[rest] _rest: Option<String>) -> anyh data.get::<PlaybackKey>().unwrap().clone() }; - playback.insert(handle.uuid(), meta); + playback.insert(handle.uuid(), playback::Metadata { + invoker: ctx.author().id, + invoke_info: InvokeInfo::Ytdl { + metadata: meta, + }, + }); let q = call.queue(); q.pause()?; |
