B:BD[
5.354] → [
5.354:408]
let Data { client, token, .. } = ctx.data()?;
let Data {
client,
token,
realm_drop_dashes,
..
} = ctx.data()?;
let server_slug = {
if realm_drop_dashes.read().await.contains(&server_slug) {
debug!(
"server {} is in drop-dashes set. removing -s ",
&server_slug
);
server_slug.replace("-", "")
} else {
server_slug
}
};
let res = guild::lookup_guild(
&client,
&token,
guild.clone(),
server_slug.clone(),
region_slug.clone(),
)
.await?
.data
.and_then(|d| d.guild_data)
.and_then(|d| d.guild);