᲼᲼᲼᲼᲼᲼᲼᲼᲼
᲼᲼᲼᲼᲼᲼᲼᲼᲼
Explore posts from servers
SIASapphire - Imagine a framework
Created by ᲼᲼᲼᲼᲼᲼᲼᲼᲼ on 6/29/2024 in #sapphire-support
Subcommands Broken
Hi everyone! I tried using subcommands w/ sapphire for the first time, and now it's just telling me that the interaction is not responding. The bot is online, but it's not responding to said command
5 replies
DIAdiscord.js - Imagine an app
Created by ᲼᲼᲼᲼᲼᲼᲼᲼᲼ on 5/28/2024 in #djs-voice
Playing Base64 Through Voice
How can I play base64 data through voice?
8 replies
CC#
Created by ᲼᲼᲼᲼᲼᲼᲼᲼᲼ on 7/5/2023 in #help
❔ Object reference not sent to an instance of an object
I have a WinUI3 app that uses C# and XAML, i'm attempting to foreach files. Files looks like this:
[ { "path": ".cache",
"type": "DIRECTORY"
},
{ "path": "Cargo.lock"
},
{ "path": "Cargo.toml"
} ]
[ { "path": ".cache",
"type": "DIRECTORY"
},
{ "path": "Cargo.lock"
},
{ "path": "Cargo.toml"
} ]
(not actual files, just mock data) But, when I create the NavigationViewItem with code, it gives me
Exception thrown: 'System.NullReferenceException' in MyProject.dll
Object reference not set to an instance of an object.
Exception thrown: 'System.NullReferenceException' in MyProject.dll
Object reference not set to an instance of an object.
Code:
foreach (var file in files)
{
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
NavigationViewItem item1 = new NavigationViewItem();
item1.Content = file.Path;
item1.Tag = file.Path;
item1.Icon = new SymbolIcon(file.Type == Api.File.Types.Type.Regular ? Symbol.Page2 : Symbol.Folder);
nvSample.MenuItems.Add(item1);
});
}
foreach (var file in files)
{
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
NavigationViewItem item1 = new NavigationViewItem();
item1.Content = file.Path;
item1.Tag = file.Path;
item1.Icon = new SymbolIcon(file.Type == Api.File.Types.Type.Regular ? Symbol.Page2 : Symbol.Folder);
nvSample.MenuItems.Add(item1);
});
}
31 replies
CC#
Created by ᲼᲼᲼᲼᲼᲼᲼᲼᲼ on 6/16/2023 in #help
❔ WinUI3 WebView2
3 replies
DIAdiscord.js - Imagine an app
Created by ᲼᲼᲼᲼᲼᲼᲼᲼᲼ on 11/7/2022 in #djs-questions
RPC invalid_scope
Hello, I have an error. OAuth2 Error: invalid_scope: The requested scope is invalid, unknown, or malformed.
const clientId = "...";
const scopes = ["rpc", "messages.read"];
const { Client } = require("discord-rpc");
const { fetch } = require("undici");
const fs = require("fs");

const client = new Client({
transport: "ipc"
});

client.on("ready", () => {
console.log("Logged in as", client.application.name);
console.log("Authed for user", client.user.username);
});


client.login({
clientId: clientId,
scopes: scopes,
redirectUri: "...",
clientSecret: "..."
});
const clientId = "...";
const scopes = ["rpc", "messages.read"];
const { Client } = require("discord-rpc");
const { fetch } = require("undici");
const fs = require("fs");

const client = new Client({
transport: "ipc"
});

client.on("ready", () => {
console.log("Logged in as", client.application.name);
console.log("Authed for user", client.user.username);
});


client.login({
clientId: clientId,
scopes: scopes,
redirectUri: "...",
clientSecret: "..."
});
3 replies
DIAdiscord.js - Imagine an app
Created by ᲼᲼᲼᲼᲼᲼᲼᲼᲼ on 7/28/2022 in #djs-questions
Disabling Mentions
how can I disable mentions on my bot?
4 replies