pub async fn refresh(self) -> Result<Self, TelescopeError> {
        // If this is a discord-based identity, refresh it and construct the refreshed root identity.
        if let RootIdentity::Discord(discord) = self {
            return discord.refresh().await.map(RootIdentity::Discord);
        }
        // Otherwise no-op.
        return Ok(self);
    }
/// Refresh this identity token if necessary.
Refresh this identity token if necessary.
Refresh this identity token if necessary .
pub async fn refresh(self) -> Result<Self, TelescopeError> {
        // If this is a discord-based identity, refresh it and construct the refreshed root identity.
        if let RootIdentity::Discord(discord) = self {
            return discord.refresh().await.map(RootIdentity::Discord);
        }
        // Otherwise no-op.
        return Ok(self);
    }
pub async fn refresh ( self ) -> Result < Self , TelescopeError > { // If this is a discord-based identity, refresh it and construct the refreshed root identity. if let RootIdentity :: Discord ( discord ) = self { return discord . refresh ( ) . await . map ( RootIdentity :: Discord ) ; } // Otherwise no-op. return Ok ( self ) ; }
Refresh this identity token if necessary.
Refresh this identity token if necessary .
self
self