fixed an overflow issue. perm checks on slash cmds

This commit is contained in:
2021-06-11 14:47:13 +01:00
parent 1f61b72cc5
commit b8bbfbfade
3 changed files with 65 additions and 11 deletions

View File

@ -171,6 +171,14 @@ SELECT name, id, plays, public, server_id, uploader_id
}
async fn interaction_create(&self, ctx: Context, interaction: Interaction) {
//
let framework = ctx
.data
.read()
.await
.get::<RegexFramework>()
.cloned()
.expect("RegexFramework not found in context");
framework.execute(ctx, interaction).await;
}
}