Hello,
I have problems with the SERVER_ID.
I use the public discord servers. In the browser, my URL is looks like: https://discord.com/channels/@me/<CHANNEL_ID_NUMERIC>/
It seems that the SERVER_ID would be "@me", but this is not numeric.
I followed the instructions but no value is set for guild_id / server_id.
I followed this guide:
Tokens / ids extraction.
- Open your web browser
- Go to your discord channel
- Open the developer bar
- Go to network
- Send a request to discordBot, like /settings
- Left click on the https://discord.com/api/v9/interactions request.
- ClickCopy
- Click Copy as fetch
- Save this request in a file that you will provide to the Midjourney constructor. (for my test I name this file interaction.txt)
I can easily read the messages from my channel. This command successfully delivers the messages:
const rawMessages = await client.getMessages(4);
But when I call Imagine Command I get an error message:
const msg = await client.imagine("A photo of an astronaut riding a horse",
/* add optional progress function (percent) => void */
);
Error: you must choose a channel first with setDiscordChannelUrl("https://discord.com/channels/....../......")
I also tried to determine the server ID via the Discord WebUI. I have enabled developer mode for my Discord user.
However, right-clicking on the midjourney bot only gives me the option to copy the channel ID and user ID.
How can I read out the server ID or use the API without a server ID?
Hello,
I have problems with the SERVER_ID.
I use the public discord servers. In the browser, my URL is looks like: https://discord.com/channels/@me/<CHANNEL_ID_NUMERIC>/
It seems that the SERVER_ID would be "@me", but this is not numeric.
I followed the instructions but no value is set for guild_id / server_id.
I followed this guide:
I can easily read the messages from my channel. This command successfully delivers the messages:
const rawMessages = await client.getMessages(4);But when I call Imagine Command I get an error message:
Error: you must choose a channel first with setDiscordChannelUrl("https://discord.com/channels/....../......")
I also tried to determine the server ID via the Discord WebUI. I have enabled developer mode for my Discord user.
However, right-clicking on the midjourney bot only gives me the option to copy the channel ID and user ID.
How can I read out the server ID or use the API without a server ID?