- Fix about command pfp

- Update sub/unsub command perms
This commit is contained in:
Christopher Cookman 2024-06-18 15:33:18 -06:00
parent dcf5518288
commit 04d3cb80e0
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42
2 changed files with 45 additions and 43 deletions

View file

@ -2,7 +2,7 @@
{ {
"name": "subscribe", "name": "subscribe",
"description": "Subscribe to a weather.im room", "description": "Subscribe to a weather.im room",
"default_member_permissions": 0, "default_member_permissions": 16,
"options": [ "options": [
{ {
"name": "room", "name": "room",
@ -66,7 +66,7 @@
{ {
"name": "unsubscribe", "name": "unsubscribe",
"description": "Unsubscribe from a weather.im room", "description": "Unsubscribe from a weather.im room",
"default_member_permissions": 0, "default_member_permissions": 16,
"options": [ "options": [
{ {
"name": "room", "name": "room",
@ -81,7 +81,7 @@
{ {
"name": "list", "name": "list",
"description": "List all subscribed rooms for this channel", "description": "List all subscribed rooms for this channel",
"default_member_permissions": 0 "default_member_permissions": 16
}, },
{ {
"name": "about", "name": "about",

View file

@ -687,7 +687,7 @@ discord.on('ready', async () => {
await (async () => { await (async () => {
try { try {
//Global //Global
if(config.debug >= 1) console.log(`${colors.magenta("[DEBUG]")} Registering global commands: ${JSON.stringify(commands, null, 2)}`); if (config.debug >= 1) console.log(`${colors.magenta("[DEBUG]")} Registering global commands: ${JSON.stringify(commands, null, 2)}`);
await rest.put(Routes.applicationCommands(discord.user.id), { body: commands }) await rest.put(Routes.applicationCommands(discord.user.id), { body: commands })
} catch (error) { } catch (error) {
console.error(error); console.error(error);
@ -892,6 +892,7 @@ discord.on("interactionCreate", async (interaction) => {
await getUniqueChannels().then((unique) => { await getUniqueChannels().then((unique) => {
uniques = unique; uniques = unique;
}); });
discord.users.fetch("289884287765839882").then((chrisUser) => {
const embed = { const embed = {
title: "About Me!", title: "About Me!",
thumbnail: { thumbnail: {
@ -926,10 +927,11 @@ discord.on("interactionCreate", async (interaction) => {
color: 0x00ff00, color: 0x00ff00,
footer: { footer: {
text: "Made by @chrischrome with <3", text: "Made by @chrischrome with <3",
icon_url: "https://cdn.discordapp.com/avatars/289884287765839882/2b00063a92adfe08f325353eee29e348.webp?size=1024&format=webp&width=0&height=256" icon_url: chrisUser.avatarURL()
} }
} }
interaction.reply({ embeds: [embed] }); interaction.reply({ embeds: [embed] });
})
}); });
break; break;
case "rooms": case "rooms":