File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ pub const NAMES: &[&str] = &[
67
67
68
68
#[ derive( Deserialize ) ]
69
69
pub struct Response {
70
- pub profile : Profile ,
70
+ pub profile : Option < Profile > ,
71
71
}
72
72
73
73
impl Player {
@@ -96,6 +96,8 @@ impl Player {
96
96
97
97
let response = response. json :: < Response > ( ) . await ?;
98
98
99
- Ok ( response. profile )
99
+ response
100
+ . profile
101
+ . ok_or_else ( || Error :: SessionNotFound ( profile. to_string ( ) ) )
100
102
}
101
103
}
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ pub const SPYGLASS: &str = "<:spyglass:1110754818433228991>";
5
5
pub const RECOVERY_COMPASS : & str = "<a:recovery_compass:1110755004463198218>" ;
6
6
pub const CLOCK : & str = "<a:clock:1110754973794451557>" ;
7
7
pub const BOOK_AND_QUILL : & str = "<:book_and_quill:1110754805724479569>" ;
8
+ pub const GOLD_INGOT : & str = "<:gold_ingot:1112803224307630212>" ;
You can’t perform that action at this time.
0 commit comments