defer upload
This commit is contained in:
parent
405fa08c2f
commit
651ad9dffe
@ -20,6 +20,8 @@ pub async fn upload_new_sound(
|
|||||||
#[description = "Name to upload sound to"] name: String,
|
#[description = "Name to upload sound to"] name: String,
|
||||||
#[description = "Sound file (max. 2MB)"] file: Attachment,
|
#[description = "Sound file (max. 2MB)"] file: Attachment,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
ctx.defer().await?;
|
||||||
|
|
||||||
fn is_numeric(s: &String) -> bool {
|
fn is_numeric(s: &String) -> bool {
|
||||||
for char in s.chars() {
|
for char in s.chars() {
|
||||||
if char.is_digit(10) {
|
if char.is_digit(10) {
|
||||||
|
Loading…
Reference in New Issue
Block a user