Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Add AddButton and RemoveButton #147

Open
HAHOOS opened this issue Jun 24, 2021 · 15 comments
Open

[FEATURE REQUEST] Add AddButton and RemoveButton #147

HAHOOS opened this issue Jun 24, 2021 · 15 comments

Comments

@HAHOOS
Copy link

HAHOOS commented Jun 24, 2021

Hello again, I have another thing that could be added, which is AddButton and RemoveButton like:

DiscordRpcClient client = new DiscordRpcClient("client-id");
client.AddButton("label", "url");
client.RemoveButton(index); //index is int
@HAHOOS
Copy link
Author

HAHOOS commented Jun 25, 2021

oh i forgot to mension @Lachee

@zoriV
Copy link

zoriV commented Jul 4, 2021

Please, add it. I need it in my project <3

@Mrgaton
Copy link

Mrgaton commented Jul 19, 2021

how i can add butons plis help

@Mrgaton
Copy link

Mrgaton commented Jul 19, 2021

image

@HAHOOS
Copy link
Author

HAHOOS commented Jul 19, 2021

if you want do like that, you can try this:

var btn1 = new Button();

btn1.Label = "Test"
btn1.Url = "Uri"
presence.Buttons[0] = btn1

But when i try it doesn't work

@Lachee
Copy link
Owner

Lachee commented Jul 20, 2021

if you want do like that, you can try this:

var btn1 = new Button();

btn1.Label = "Test"
btn1.Url = "Uri"
presence.Buttons[0] = btn1

But when i try it doesn't work

what do you mean "doesn't work".
Please provide more details

@Mrgaton it needs to be an array

@Mrgaton
Copy link

Mrgaton commented Jul 20, 2021

if you want do like that, you can try this:

var btn1 = new Button();

btn1.Label = "Test"
btn1.Url = "Uri"
presence.Buttons[0] = btn1

But when i try it doesn't work

what do you mean "doesn't work".
Please provide more details

@Mrgaton it needs to be an array

i dont now how to do thath can u show me code plis im new in c#
image

@Lachee
Copy link
Owner

Lachee commented Jul 20, 2021

if you want do like that, you can try this:

var btn1 = new Button();

btn1.Label = "Test"
btn1.Url = "Uri"
presence.Buttons[0] = btn1

But when i try it doesn't work

what do you mean "doesn't work".
Please provide more details
@Mrgaton it needs to be an array

i dont now how to do thath can u show me code plis im new in c#
image

its an array... you need to declare an array.
https://www.tutorialsteacher.com/csharp/array-csharp

@Mrgaton
Copy link

Mrgaton commented Jul 20, 2021

image
Like this?

can u help me in discord please i have more questions I'm sorry for the inconvenience but I'm not good at programming in this programming language so I don't understand how it goes and I'm still not used to using libraries

@Lachee
Copy link
Owner

Lachee commented Jul 20, 2021

@Mrgaton, I do not help with introductory programming questions in discord or as issues. I expect users of my libraries and tools to know at least basic C# and programming. I just don't have the time to help every possible beginner, sorry 😢.

There are plenty of resources online to get you started and the examples show you how to do it 🤨

Please do some research outside this issue.

@Mrgaton
Copy link

Mrgaton commented Jul 20, 2021

:o thath example is what i need it thanks for solving my problem

one more question than what timestamp is it?

image
Thanks <3

@Mrgaton
Copy link

Mrgaton commented Jul 20, 2021

o okey sory i now what is timestamp

@Mrgaton
Copy link

Mrgaton commented Jul 20, 2021

Okey u are awesome Lachee

@Mrgaton
Copy link

Mrgaton commented Jul 20, 2021

and i think i found an iuse
image
In mi discord tag i have the discriminator 0001
and in console only shows 1
this is the code
image

Repository owner locked as off-topic and limited conversation to collaborators Jul 21, 2021
@Lachee
Copy link
Owner

Lachee commented Jul 21, 2021

and i think i found an iuse
image
In mi discord tag i have the discriminator 0001
and in console only shows 1
this is the code
image

see issue #150
Issue locked to prevent further off-topic conversation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants