Skip to content

DBot does not have a style #204

Closed
Closed

Description

@borgrel

Is your feature request related to a problem? Please describe.
Each command will have to generate their own EmbedBuilders (and other entities)
Leading to inconsistency in the output given to users

Describe the solution you'd like
We need a way for commands (and other bot code?) to request the output generating entities supplied by the API from a common source so that they stay consistent in look and feel.

Activity

  1. added
    enhancement
    on Oct 18, 2021
  2. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    Can you elaborate on this suggesstion? I do not see the problem yet. And why you think that we need a common L&F.

    Not every command wants to report back with embeds and commands may also want to use different colors in embeds, if they choose to use embeds. Apart from the color, there is not really much to configure. See #135 for some code examples of using embeds.

  3. borgrel commented on Oct 18, 2021

    @borgrel
    ContributorAuthor

    Most programs/programmers are very focussed on the look and feel.
    Branding matters.

    No elaboration needed.
    If you feel that it is unnecessary then all good.
    Go ahead and close it.

  4. Tais993 commented on Oct 18, 2021

    @Tais993
    Member

    I do agree with Borgrel.
    It'd be nice if we had a default color, default timestamp and such for every embed to keep it consistent.

    If a command wants to use red because it's an error, sure!

    But by just doing nothing a lot of inconsistencies will happen causing a bad UX

  5. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    Thing is, there is almost no branding/L&F options available. And most "command categories" would probably run with their own distinct settings.

    Doc-Tor for example uses yellow embeds. The tag system uses red. The jshell-bot uses green. Why should they all be merged to one color, just because its one bot that runs them. "command categories" are more interesting for having one unique color.

    Commands like the ban or tex dont want to use embeds but plain messages. And apart from the color with embeds you can not configure much.

    That said, we already offer a general embed builder that provides one particular "template". See #135 .

  6. Tais993 commented on Oct 18, 2021

    @Tais993
    Member

    https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/01-Overview.png

    (On phone, can't display images)

    Footer text with a link to this repo and author = who ran this command, default timestamp, color?

    No-one is gonna spend a lot of time reading other people their code just to get an embed style.

    I'm not saying commands can't use their own color, but by default having all commands the same colour is nice for consistency reasoning.

    If Jshell ends up using another colour, sure! Like I said, that's fine.

    But by having so many different kind of embeds, it just becomes a worse experience

  7. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    https://raw.githubusercontent.com/DV8FromTheWorld/JDA/assets/assets/docs/embeds/01-Overview.png

    (On phone, can't display images)

    Footer text with a link to this repo and who ran this command, default timestamp, color?

    No-one is gonna spend a lot of time reading other people their code just to get an embed style.

    Again, we already have an embed builder that provides a setting for this. You give it the user who ran the command, a color you want, ... and it puts the timestamp there and everything. See #135 .

  8. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    grafik

  9. Tais993 commented on Oct 18, 2021

    @Tais993
    Member

    Again, we already have an embed builder that provides a setting for this. You give it the user who ran the command, a color you want, ... and it puts the timestamp there and everything. See #135 .

    I'm not gonna read 35 files to find 1 EmbedBuilder.

  10. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    Just adjust the code for this method and it will affect all embed users that opted to use "our style".

  11. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    Again, we already have an embed builder that provides a setting for this. You give it the user who ran the command, a color you want, ... and it puts the timestamp there and everything. See #135 .

    I'm not gonna read 35 files to find 1 EmbedBuilder.

    MessageUtils.java

  12. Tais993 commented on Oct 18, 2021

    @Tais993
    Member

    Regardless, it's an unofficial EmbedBuilder generator.

    No-one knows about it, and we can make usage of author instead of the footer too.

    So let's make usage of this issue to determine the style.

    What colour, etc, etc

  13. Tais993 commented on Oct 18, 2021

    @Tais993
    Member

    Regardless, it's an unofficial EmbedBuilder generated.

    No-one knows about it, and we can make usage of author instead of the footer too.

    So let's make usage of this issue to determine the style.

    What colour, etc, etc

    And that EmbedBuilder isn't an actual EmbedBuilder generator, it's a MessageEmbed generator.

    It allows no customizing, no usage of fields, no usage of the author, images

    I mean a method that generates an EmbedBuilder with default settings.
    Which can be overwritten, thus allowing customizing while keeping it consistent in general.

    (So forcing everyone to use that generator, instead of their own, which has no consistency across the board)

  14. Zabuzard commented on Oct 18, 2021

    @Zabuzard
    Member

    I really have difficulty following here and tend to discarding. But feel free to propose or implement something.

  15. github-actions commented on Dec 17, 2021

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

  16. added
    inactivity-closed
    on Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementinactivity-closedstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions