mirror of
https://github.com/coral/sipcord-bridge.git
synced 2026-06-29 09:23:14 -06:00
fix
This commit is contained in:
parent
d44e3544d1
commit
c5ce9d7dac
|
|
@ -17,7 +17,7 @@ use rubato::{
|
||||||
use serenity::all::{
|
use serenity::all::{
|
||||||
ButtonStyle, ChannelId, Client, CommandInteraction, CommandOptionType,
|
ButtonStyle, ChannelId, Client, CommandInteraction, CommandOptionType,
|
||||||
ComponentInteraction, Context, CreateActionRow, CreateButton, CreateCommand,
|
ComponentInteraction, Context, CreateActionRow, CreateButton, CreateCommand,
|
||||||
CreateCommandOption, CreateEmbed, CreateInteractionResponse,
|
CreateCommandOption, CreateComponent, CreateEmbed, CreateInteractionResponse,
|
||||||
CreateInteractionResponseMessage, EventHandler, FullEvent, GatewayIntents, GuildId,
|
CreateInteractionResponseMessage, EventHandler, FullEvent, GatewayIntents, GuildId,
|
||||||
Interaction,
|
Interaction,
|
||||||
};
|
};
|
||||||
|
|
@ -784,9 +784,9 @@ async fn handle_directory_button(
|
||||||
component
|
component
|
||||||
.member
|
.member
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|member| member.nick.clone()),
|
.and_then(|member| member.nick.as_ref().map(ToString::to_string)),
|
||||||
component.user.global_name.clone(),
|
component.user.global_name.as_ref().map(ToString::to_string),
|
||||||
component.user.name.clone(),
|
component.user.name.to_string(),
|
||||||
&entry.extension,
|
&entry.extension,
|
||||||
&format!("directory-{}", component.id),
|
&format!("directory-{}", component.id),
|
||||||
cfg,
|
cfg,
|
||||||
|
|
@ -840,7 +840,7 @@ fn build_directory_response(entries: &[PhoneDirectoryEntry]) -> CreateInteractio
|
||||||
.style(ButtonStyle::Primary)
|
.style(ButtonStyle::Primary)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
rows.push(CreateActionRow::Buttons(buttons));
|
rows.push(CreateComponent::ActionRow(CreateActionRow::Buttons(buttons)));
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateInteractionResponseMessage::new()
|
CreateInteractionResponseMessage::new()
|
||||||
|
|
@ -887,9 +887,9 @@ fn build_outbound_request(
|
||||||
command
|
command
|
||||||
.member
|
.member
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|member| member.nick.clone()),
|
.and_then(|member| member.nick.as_ref().map(ToString::to_string)),
|
||||||
command.user.global_name.clone(),
|
command.user.global_name.as_ref().map(ToString::to_string),
|
||||||
command.user.name.clone(),
|
command.user.name.to_string(),
|
||||||
&extension,
|
&extension,
|
||||||
&command.id.to_string(),
|
&command.id.to_string(),
|
||||||
cfg,
|
cfg,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue