Split getVoiceChannelMentions into multiple lines

This commit is contained in:
Nick 2024-04-08 14:10:18 -04:00
parent f4f2734806
commit b3598e3a6a

View file

@ -14,7 +14,12 @@ import { Channel } from "discord-types/general";
const SortedVoiceStateStore = findByPropsLazy("getVoiceStatesForChannel");
async function getVoiceChannelMentions(channel: Channel) {
return await SortedVoiceStateStore.getVoiceStatesForChannel(channel).filter((value: any) => value.user.id !== UserStore.getCurrentUser().id).map((value: any) => { return `<@${value.user.id}>`; }).join(" ");
return await SortedVoiceStateStore.getVoiceStatesForChannel(channel)
.filter((value: any) => value.user.id !== UserStore.getCurrentUser().id)
.map((value: any) => {
return `<@${value.user.id}>`;
})
.join(" ");
}
export default definePlugin({