[skip ci] Don't run ci on forks; Fix interaction nicks in SMYN (#4)

The following actions are disabled unless run on the main repo: codeberg, publish, build/upload, reportBrokenPlugins

Reviewed-on: https://codeberg.org/Ven/cord/pulls/4
Co-authored-by: Luna <imlvnaa@gmail.com>
Co-committed-by: Luna <imlvnaa@gmail.com>
This commit is contained in:
Luna 2023-06-09 19:48:18 +00:00 committed by Ven
parent 55543d8640
commit dbad10984a
6 changed files with 10 additions and 0 deletions

View file

@ -63,6 +63,7 @@ export default definePlugin({
settings,
renderUsername: ({ author, message, isRepliedMessage, withMentionPrefix }: UsernameProps) => {
if (message.interaction) return author?.nick;
try {
const { username } = message.author;
const { nick } = author;

View file

@ -319,6 +319,10 @@ export const Devs = /* #__PURE__*/ Object.freeze({
name: "amia",
id: 142007603549962240n
},
ImLvna: {
name: "Luna <3",
id: 174200708818665472n
}
} satisfies Record<string, Dev>);
// iife so #__PURE__ works correctly