Updated the README some for rewrite

This commit is contained in:
2025-01-02 01:49:22 -06:00
parent 2f20325c03
commit fc7f6548a4
3 changed files with 109 additions and 21 deletions
+7 -5
View File
@@ -85,11 +85,13 @@ client.chatCommands.register('me', async (context: Context, _args: any[]) => {
const hydrate = await context.hydrator(hydrated, [Expectation.Guild]);
const hasGuild = hydrate(hydrated);
// if (hasGuild) {
// hydrated.guild.name
// } else {
// hydrated
// }
if (hasGuild) {
// Send a message stating the user that they are in a guild
await context.reply(`You are ${message.author.username} and this is ${message.guild.name}`, true);
} else {
// Send a message stating the user that they are not in a guild
await context.reply(`You are ${message.author.username} and we are not in a server`, true);
}
// await context.reply(`You are ${message.author.username} ${hasGuild ? message.guild.name : ''}`, true);
});