#Commands, API v1 Feedback

1 messages ยท Page 1 of 1 (latest)

wide dome
#

Feedback happy

pseudo mulch
#

W update

wide dome
#

W feedback

neon robin
#

W team

dire pewter
#

W site

wide dome
#

speaking of site

#

insane

signal spade
#

When auto fetch of most used commands from app dir? Sus

wide dome
mint warren
wide dome
#

The posting API works with both tokens

mint warren
wide dome
#

Could you share your code? (don't share the token)

mint warren
#

tried both old and new tokens 401 still

#

ok

wide dome
#

Make sure the token looks as follows:

headers: {
  "Authorization": "Bearer " + token
}
mint warren
#

AHHH , user error , spelt it wrong

wide dome
#

hahaha

#

happens :)

mint warren
wide dome
#

awesome!

mighty remnant
#

Sub-commands (and context menus) are currently being ignored by the uploaded payload, are there any plans to support them in the commands overview?

pseudo mulch
#

Wait so are stuff like eg. /fun coinflip working for the commands api

wide dome
dire pewter
pseudo mulch
#

Well that really sucks

dire pewter
#

They're going to be added

pseudo mulch
#

Most of my bots commands won't show then

pseudo mulch
broken radish
#

q, does anyone know why custom fonts broke? it's rendering the default browser font, and not Outfit which I am importing. but it's also not the default top.gg font

in addition to that, could we maybe get utility classes that never change? like button because I am a little tired of updating my description css/html every time anything changes

wide dome
#

you're overriding the font so it wouldn't be able to fall back to the top.gg default font. check your network status. you can use class="button button-{sm|md|lg} button-{primary|default}" for any top.gg buttons

broken radish
#

the font used to work but randomly bring now, couldn't find anything in the network tab so not sure, maybe csp?

wide dome
#

we didnt change anything related to csp

#

neither did we change anything in thisupdate related to the overview tab

#

how long ago did it last work?

#

Generally though, I recommend using Manrope (the default top.gg font)

#

We optimize the page for manrope on the server, so it can cause content layout shift if you override it

#

Maybe it's time for a better editor in general lol

granite remnant
#

I will soon implement this on my bot but temporarily how is it formatted is it a JSON with the slash command ID?

Like { name:"help" id:"blahblah" }

#

Cause I see you can add it manually from the dashboard of the bot.

wide dome
#

as long as it follows the slash command create properties you can yes.

mint warren
wide dome
#

yo who made that image

mint warren
wide dome
#

bingo

granite remnant
wide dome
#

yes

granite remnant
#

when I try to input it fails?

#

can I have a example of how its supposed to be that github link shows a different language im using javascript.

#

Oh I found this

option_data = {
"name": param.name,
"description": getattr(param, 'description', 'Parameter'),
"required": param.required if hasattr(param, 'required') else param.default == param.empty
}

granite remnant
#

seems that wasn't it I have to find one for javascript I guess

wide dome
#

it needs to be in an array

#
[{ "name": "my-command", "description": "This is a command!", "nsfw": false }]
granite remnant
#

oh ok that makes sense

#

also I think this is a bug but when I click on Import when pressing import from Discord it doesnt dismiss the modal it just stays there but I got it to work thank you!

wide dome
#

Will fix!

gusty hazel
#

Small thing @wide dome but it would be nice to have better support for context menu commands, little weird for them to be showing up as if they're slash commands

#

I'd also suggest maybe showing the options for slash commands, see https://discordbotlist.com/bots/ostra/commands as an example

wide dome
wide dome
gusty hazel
gusty hazel
wide dome
#

that way you'll always be up to date when we make updates

gusty hazel
#

so i was fixing that and saw the commands option and was reminded of it

#

it was like "i'm already here so why not"

wide dome
#

light/dark mode?

#

you can use color-scheme for that iirc

gusty hazel
wide dome
#

clean!!

gusty hazel
#
<style>
    @media (prefers-color-scheme: light) {
        .ostra-dark-theme {
            display: none;
        }
    }

    @media (prefers-color-scheme: dark) {
        .ostra-light-theme {
            display: none;
        }
    }

    html[data-theme="dark"] .ostra-light-theme {
        display: none;
    }

    html[data-theme="dark"] .ostra-dark-theme {
        display: block;
    }

    html[data-theme="light"] .ostra-dark-theme {
        display: none;
    }

    html[data-theme="light"] .ostra-light-theme {
        display: block;
    }
</style>

it's disgusting but it works

wide dome
#

hmm

#

lgtm LOL

gusty hazel
#

fixed unacceptable previous behavior (light mode screenshots used in dark mode) (we know how discord users feel about that)

wide dome
#

๐Ÿ“ธ

gusty hazel
#

dbl users are told the same

wide dome
#

but yeah can take a look

#

we have a different project ongoing first that i wanna finish

#

afterwards we're doing another polish update

gusty hazel
wide dome
#

kinda trying to keep that pattern

wide dome
gusty hazel
wide dome
#

its been ongoing for a while now

gusty hazel
#

i just hope the backend is more stable

wide dome
#

it will be a lot more

gusty hazel
#

wonder how much money top.gg have potentially lost in outbids for the current system due to outbids not being pushed to the UI reliably

wide dome
#

probably a lot

gusty hazel
#

i lost 3 slots this week that i thought i won because the UI showed that i did mad

wide dome
#

new system will be much easier tho!

gusty hazel
#

new system will respect that people live in diverse timezones and have lives /s

wide dome
gusty hazel
wide dome
#

Basically a way for us to A/B test new tags for you

#

see if the clicks are higher

#

if yes, we'll add it to the rotation for you

gusty hazel
#

ah that's cool, was wondering if it was just something like "we'll take your bot description and give it to an LLM and see what tags it thinks are most appropriate"

wide dome
#

that way you can just sit back and we make sure you get the best possible growth

#

still a lot to be done though

#

hopefully it can go out soon-ish

#

probably first tests will be 2-4 weeks away

gusty hazel
#

best of luck finishing it and explaining the changes to users in time for the first ad period

wide dome
#

it'll be a LOT easier

gusty hazel
#

oh current system is obnoxious to explain to people i agree

wide dome
#

the periods are gone

#

in the new system

gusty hazel
wide dome
#

you set your own start and stop dates

gusty hazel
#

oh that's nice

#

but can one big bot dev just say "i want to spend 1k and lock down this slot for a whole year" manictroll

wide dome
#

wouldnt' work

#

we don't show repeat ads to the same person :-)

gusty hazel
wide dome
#

if a user visits top.gg, there's a cooldown on how many times they'll see the same ad in a row

#

they're not gonna click on an ad after shoving it in their face 5 times in a row

gusty hazel
wide dome
#

yes

#

there's still bidding ofcourse

#

but it happens in real-time

gusty hazel
#

i'm saying imagine a smallish slot like reaction roles slot 1, can the big guys over @ droplet just decide "I want to pay like 3 grand to have this slot on lock for a whole year"

wide dome
#

you set your budget, and we will give you impressions

#

if they pay 3 grand a month maybe

#

for a whole year would be hard

#

but even then, we will rotate ads for users who've seen the same ad several times

#

to make sure we dont waste impresisons

gusty hazel
wide dome
#

i mean the spots are fluid from this point on

gusty hazel
#

so instead of being ๐Ÿ”’ locked in at 3pm EST on monday, you can now get yoinked at any time hahah

wide dome
#

every view the ad goes into a new bidding cycle we get the best fitting ad for the user

#

no

#

it's all automatic

#

you set a budget

#

we take care of the rest

#

e.g.

gusty hazel
wide dome
#

my budget is "35$/day" for 10 tags

gusty hazel
#

well what i should be asking is, is the pricing still going to be cpm based

wide dome
#

here's how many impressions we expect you get in this time: xxx

#

pay here:

#

manual bidding is possible yes

#

which is basically setting a max cpm

gusty hazel
#

hopefully will make more sense once i get to see the new system

wide dome
#

it will be a lot easier

#

anyways

#

back to work

#

good talk

gusty hazel
gusty hazel
granite remnant
#

Is there an official way to add the commands with discord.js like I would need to manually do the adding of the commands.

wide dome
#

it's in review @granite remnant

#

should be there next week-ish

granite remnant
#

oh ok thanks cause right now I know posting stats work for servers work

broken radish
#

I kinda like how dlist shows commands with all their options and their type (string (incl. choices), boolean, number, ....)

granite remnant
wide dome
#

separate from our SDKs but you can use whatever you want

granite remnant
#

so you're telling me to just wait for the offical SDK?

wide dome
#

not per say, its just a fetch call to our api you can also just add it yourself

#
fetch("https://top.gg/api/v1/commands", {
  method: "POST",
  headers: {
    Authorization: "Bearer {TOKEN}"
  },
  body: JSON.stringify(commandsFromDiscordJs),
});

all you need really.

wicked marlin
wide dome