mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-20 06:30:35 +00:00
Split getVoiceChannelMentions into multiple lines
This commit is contained in:
parent
f4f2734806
commit
b3598e3a6a
1 changed files with 6 additions and 1 deletions
|
@ -14,7 +14,12 @@ import { Channel } from "discord-types/general";
|
||||||
const SortedVoiceStateStore = findByPropsLazy("getVoiceStatesForChannel");
|
const SortedVoiceStateStore = findByPropsLazy("getVoiceStatesForChannel");
|
||||||
|
|
||||||
async function getVoiceChannelMentions(channel: Channel) {
|
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({
|
export default definePlugin({
|
||||||
|
|
Loading…
Reference in a new issue