Block editing username and avatar on DMs

This commit is contained in:
jude
2024-03-10 19:43:57 +00:00
parent 3190738fc5
commit 63fc2cdcbc
7 changed files with 73 additions and 38 deletions

View File

@ -1,9 +1,11 @@
import { useReminder } from "./ReminderContext";
import { useGuild } from "../App/useGuild";
export const Username = () => {
const guild = useGuild();
const [reminder, setReminder] = useReminder();
return (
return guild ? (
<div class="discord-message-header">
<label class="is-sr-only">Username Override</label>
<input
@ -20,5 +22,9 @@ export const Username = () => {
}}
></input>
</div>
) : (
<div class="discord-message-header">
<span class="discord-username">Reminder Bot</span>
</div>
);
};