mirror of
https://github.com/Equicord/Equicord.git
synced 2025-07-03 02:03:58 -04:00
i18n.messages -> getIntlMessage
This commit is contained in:
commit
66d921620b
51 changed files with 230 additions and 225 deletions
|
@ -5,9 +5,10 @@
|
|||
*/
|
||||
|
||||
import { Devs } from "@utils/constants";
|
||||
import { getIntlMessage } from "@utils/discord";
|
||||
import definePlugin from "@utils/types";
|
||||
import { findByCodeLazy, findByPropsLazy } from "@webpack";
|
||||
import { ChannelStore, GuildStore, i18n, RelationshipStore, UserStore } from "@webpack/common";
|
||||
import { ChannelStore, GuildStore, RelationshipStore, UserStore } from "@webpack/common";
|
||||
|
||||
const { getName } = findByPropsLazy("getName", "useName", "getNickname");
|
||||
const computeChannelName = findByCodeLazy(".isThread())return'\"'.concat(");
|
||||
|
@ -39,7 +40,7 @@ export default definePlugin({
|
|||
if (message.type === MessageTypes.REPLY && message.referenced_message?.author) {
|
||||
const replyUser = UserStore.getUser(message.referenced_message.author.id);
|
||||
const replyUsername = getName(channel.guild_id, channel.id, replyUser);
|
||||
title = i18n.Messages.CHANNEL_MESSAGE_REPLY_A11Y_LABEL.format({
|
||||
title = getIntlMessage("CHANNEL_MESSAGE_REPLY_A11Y_LABEL", {
|
||||
author: username,
|
||||
repliedAuthor: replyUsername,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue