grumble grumble
This commit is contained in:
parent
7e2e85988b
commit
f63c6a7c75
|
@ -140,20 +140,20 @@ impl ChorusUser {
|
||||||
/// let result = user.create_domain_connection(&domain).await;
|
/// let result = user.create_domain_connection(&domain).await;
|
||||||
///
|
///
|
||||||
/// if let Ok(returned) = result {
|
/// if let Ok(returned) = result {
|
||||||
/// match returned {
|
/// match returned {
|
||||||
/// CreateDomainConnectionReturn::ProofNeeded(proof) => {
|
/// CreateDomainConnectionReturn::ProofNeeded(proof) => {
|
||||||
/// println!("Additional proof needed!");
|
/// println!("Additional proof needed!");
|
||||||
/// println!("Either:");
|
/// println!("Either:");
|
||||||
/// println!("");
|
/// println!("");
|
||||||
/// println!("- create a DNS TXT record with the name _discord.{domain} and content {proof}");
|
/// println!("- create a DNS TXT record with the name _discord.{domain} and content {proof}");
|
||||||
/// println!("or");
|
/// println!("or");
|
||||||
/// println!("- create a file at https://{domain}/.well-known/discord with the content {proof}");
|
/// println!("- create a file at https://{domain}/.well-known/discord with the content {proof}");
|
||||||
/// // Once the user has added the proof, retry calling the endpoint
|
/// // Once the user has added the proof, retry calling the endpoint
|
||||||
/// }
|
/// }
|
||||||
/// CreateDomainConnectionReturn::Ok(connection) => {
|
/// CreateDomainConnectionReturn::Ok(connection) => {
|
||||||
/// println!("Successfulyl created connection! {:?}", connection);
|
/// println!("Successfulyl created connection! {:?}", connection);
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// } else {
|
/// } else {
|
||||||
/// println!("Failed to create connection: {:?}", result);
|
/// println!("Failed to create connection: {:?}", result);
|
||||||
/// }
|
/// }
|
||||||
|
@ -205,7 +205,7 @@ impl ChorusUser {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Err(error);
|
Err(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Add create_domain_connection (<https://docs.discord.sex/resources/user#create-domain-connection>)
|
// TODO: Add create_domain_connection (<https://docs.discord.sex/resources/user#create-domain-connection>)
|
||||||
|
|
|
@ -422,9 +422,7 @@ pub enum CreateDomainConnectionReturn {
|
||||||
/// To verify ownership, either:
|
/// To verify ownership, either:
|
||||||
///
|
///
|
||||||
/// - add the proof string as a TXT DNS record to the domain,
|
/// - add the proof string as a TXT DNS record to the domain,
|
||||||
/// with the name of the record being `_discord.{domain}`
|
/// with the name of the record being `_discord.{domain}` or
|
||||||
///
|
|
||||||
/// or
|
|
||||||
///
|
///
|
||||||
/// - serve the proof string as a file at `https://{domain}/.well-known/discord`
|
/// - serve the proof string as a file at `https://{domain}/.well-known/discord`
|
||||||
///
|
///
|
||||||
|
@ -443,9 +441,9 @@ pub enum CreateDomainConnectionReturn {
|
||||||
/// # Reference
|
/// # Reference
|
||||||
/// ```json
|
/// ```json
|
||||||
/// {
|
/// {
|
||||||
/// "amount": 2,
|
/// "amount": 2,
|
||||||
/// "replenished_today": false,
|
/// "replenished_today": false,
|
||||||
/// "next_replenish_at": "2024-08-18T23:53:17+00:00"
|
/// "next_replenish_at": "2024-08-18T23:53:17+00:00"
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
pub struct BurstCreditsInfo {
|
pub struct BurstCreditsInfo {
|
||||||
|
|
Loading…
Reference in New Issue