@@ -23,20 +23,20 @@ public async Task Remove(
2323 [ Summary ( "category" , "The category to remove" ) ]
2424 SocketCategoryChannel socketCategory )
2525 {
26- Category ? category = GetCategory ( socketCategory , Context . Guild ) ;
26+ Category ? category = await GetCategory ( socketCategory , Context . Guild ) ;
2727 if ( category == null )
2828 {
2929 await RespondAsync ( "That category is not registered!" ) ;
3030 return ;
3131 }
3232
33- if ( ! await category . Delete ( _client ) )
33+ if ( ! await category . DeleteAsync ( _client ) )
3434 {
3535 await RespondAsync ( "An error occurred while deleting the category." ) ;
3636 return ;
3737 }
3838
39- _database . Delete ( category ) ;
39+ await _database . DeleteAsync ( category ) ;
4040 await RespondAsync ( $ "Category '{ category . Name } ' removed!") ;
4141 }
4242
@@ -50,20 +50,20 @@ public async Task Remove(
5050 [ Summary ( "category" , "The category to remove" ) ]
5151 string socketCategory )
5252 {
53- Category ? category = GetCategory ( socketCategory , Context . Guild ) ;
53+ Category ? category = await GetCategory ( socketCategory , Context . Guild ) ;
5454 if ( category == null )
5555 {
5656 await RespondAsync ( "That category is not registered!" ) ;
5757 return ;
5858 }
5959
60- if ( ! await category . Delete ( _client ) )
60+ if ( ! await category . DeleteAsync ( _client ) )
6161 {
6262 await RespondAsync ( "An error occurred while deleting the category." ) ;
6363 return ;
6464 }
6565
66- _database . Delete ( category ) ;
66+ await _database . DeleteAsync ( category ) ;
6767 await RespondAsync ( $ "Category '{ category . Name } ' removed!") ;
6868 }
6969}
0 commit comments