I knew I recognized it, though it should be channel_id instead of channel, .reference_message(&msg) instead of .references(msg) and there shouldn't be any .await for it to work with serenity. Or is this some other library?
nahhh since when is updating your code and securing it and being a responsible programmer a good coding practice 🙄 you should actually rewrite it in python or something since that means worse performance
yeah but having classes on the root package is very unconventional and a bad practice, since if you have a library or something which has a class with the same name on the root package, it'd probably cause some woopsies to happen
it's kind of like not having namespaces in c++ headers
I didn't even know it was necessary for having namespaces in C++ headers.
i mean it's not necessary, but it's conventional and it'll stop quirky behavior from happening. if you don't use namespaces in c++ headers, people will assume you are new to the language and working with multiple headers becomes hard. just like in java.
also, if you're programming in c++, i'd recommend not doing using namespace [NameSpace Here] since that'll also cause weird behavior and defeats the whole purpose of a namespace
11
u/wentaas Mar 17 '21
msg.channel.send_message(&ctx, |m| m.content("Welcome back").references(msg)).await?4
u/AnzenKuru Mar 17 '21
Ayyyy!!
Simplistic!
2
u/Infinite_Self_5782 Nov 20 '21
2
u/herkulessi Nov 28 '21
Why the wat? I thought wat was only a valid response when printing to stderr... (System.err.println();)
3
u/rguzgu Mar 17 '21 edited Mar 17 '21
~~C# ~~ Java User in Da House
1
u/[deleted] Mar 16 '22
I've done this before. I put quotes around my message or type print() sometimes.
1
u/[deleted] Mar 18 '21
For the best effect, put the entire class and void code in there!