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

Still working? #3

Open
Wubzzz1337 opened this issue Nov 6, 2022 · 2 comments
Open

Still working? #3

Wubzzz1337 opened this issue Nov 6, 2022 · 2 comments

Comments

@Wubzzz1337
Copy link

Hello,

Tried to build it but I run into small issues when trying to "Build" the file.

> Task :compileKotlin FAILED
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (64, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (65, 17): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (83, 26): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (84, 28): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (98, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (105, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\HelpCommand.kt: (50, 17): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (75, 21): Unresolved reference: setFooter
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (104, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (105, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (106, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (107, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (62, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (63, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (64, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (65, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\PingCommand.kt: (40, 13): Unresolved reference: setTitle
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\PingCommand.kt: (41, 13): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\RemoveRoleCommand.kt: (51, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\RemoveRoleCommand.kt: (55, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetPrefixCommand.kt: (47, 13): Unresolved reference: setTitle
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetPrefixCommand.kt: (48, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetPrefixCommand.kt: (49, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (52, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (68, 13): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (69, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (70, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\listeners\MemberAddRoleListener.kt: (35, 69): Type mismatch: inferred type is Flux<Role!> but Set<Snowflake> was expected
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\scheduler\TrackedMemberJob.kt: (126, 25): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\service\RoleFinderService.kt: (64, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\service\RoleFinderService.kt: (69, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (82, 18): Unresolved reference: toDaysPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (83, 25): Unresolved reference: toDaysPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (85, 18): Unresolved reference: toDaysPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (86, 25): Unresolved reference: toDaysPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (88, 18): Unresolved reference: toHoursPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (89, 25): Unresolved reference: toHoursPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (91, 18): Unresolved reference: toMinutesPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (92, 25): Unresolved reference: toMinutesPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (94, 18): Unresolved reference: toSecondsPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (95, 25): Unresolved reference: toSecondsPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (97, 35): Unresolved reference: toMillisPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (98, 25): Unresolved reference: toMillisPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (100, 39): Unresolved reference: toNanosPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (101, 25): Unresolved reference: toNanosPart
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (110, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (111, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (112, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (113, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (114, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (115, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (116, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (117, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (118, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (119, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (120, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (46, 13): Unresolved reference: setColor
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (47, 13): Unresolved reference: setAuthor
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (48, 13): Unresolved reference: setTimestamp
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (49, 32): Unresolved reference: setTitle
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (59, 17): None of the following functions can be called with the arguments supplied:
public final fun createEmbed(p0: ((LegacyEmbedCreateSpec!) -> Unit)!): Mono<Message!>! defined in discord4j.core.`object`.entity.channel.MessageChannel
public open fun createEmbed(p0: EmbedCreateSpec!): MessageCreateMono! defined in discord4j.core.`object`.entity.channel.MessageChannel
public open fun createEmbed(p0: Consumer<in LegacyEmbedCreateSpec!>!): Mono<Message!>! defined in discord4j.core.`object`.entity.channel.MessageChannel
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (58, 31): None of the following functions can be called with the arguments supplied:
public final fun createMessage(p0: ((LegacyMessageCreateSpec!) -> Unit)!): Mono<Message!>! defined in discord4j.core.`object`.entity.channel.MessageChannel
public abstract fun createMessage(p0: MessageCreateSpec!): Mono<Message!>! defined in discord4j.core.`object`.entity.channel.MessageChannel
public abstract fun createMessage(p0: Consumer<in LegacyMessageCreateSpec!>!): Mono<Message!>! defined in discord4j.core.`object`.entity.channel.MessageChannel
public open fun createMessage(vararg p0: EmbedCreateSpec!): MessageCreateMono! defined in discord4j.core.`object`.entity.channel.MessageChannel
public open fun createMessage(p0: String!): MessageCreateMono! defined in discord4j.core.`object`.entity.channel.MessageChannel
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (116, 66): Type mismatch: inferred type is LegacyMessageEditSpec! but MessageEditSpec was expected
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (169, 30): Unresolved reference: setEmbed
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (169, 50): Unresolved reference: it
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (170, 36): Unresolved reference: setEmbed
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (170, 59): Unresolved reference: it

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileKotlin'.
> Compilation error. See log for more details

Also update the dependencie: "implementation("com.discord4j:discord4j-core:3.2.3-SNAPSHOT")"

And if I use the Docker version it seems like my users never get kicked :o

Also would be cool to have an option to disable the PM message.
Alternative it would be cool to post the message in a specific channel instead, like:
"@user your time ran out and you will be kicked within 1day."

Kind Regards

@Wubzzz1337
Copy link
Author

Task :kaptKotlin
[WARN] Incremental annotation processing requested, but support is disabled because the following processors are not incremental: org.springframework.boot.configurationprocessor.ConfigurationMetadataAnnotationProcessor (NON_INCREMENTAL).

Task :compileKotlin FAILED
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (64, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (65, 17): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (83, 26): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (84, 28): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (98, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\AddOrEditRoleCommand.kt: (105, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\HelpCommand.kt: (50, 17): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (75, 21): Unresolved reference: setFooter
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (104, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (105, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (106, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListMembersCommand.kt: (107, 9): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (62, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (63, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (64, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\ListRolesCommand.kt: (65, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\PingCommand.kt: (40, 13): Unresolved reference: setTitle
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\PingCommand.kt: (41, 13): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\RemoveRoleCommand.kt: (51, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\RemoveRoleCommand.kt: (55, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetPrefixCommand.kt: (47, 13): Unresolved reference: setTitle
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetPrefixCommand.kt: (48, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetPrefixCommand.kt: (49, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (52, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (68, 13): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (69, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\command\SetWarningMessageCommand.kt: (70, 13): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\listeners\MemberAddRoleListener.kt: (35, 69): Type mismatch: inferred type is Flux<Role!> but Set was expected
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\scheduler\TrackedMemberJob.kt: (126, 25): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\service\RoleFinderService.kt: (64, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\service\RoleFinderService.kt: (69, 17): Unresolved reference: setDescription
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (110, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (111, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (112, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (113, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (114, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (115, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (116, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (117, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (118, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (119, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\DurationParsing.kt: (120, 5): Unresolved reference: addField
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (46, 13): Unresolved reference: setColor
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (47, 13): Unresolved reference: setAuthor
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (48, 13): Unresolved reference: setTimestamp
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (49, 32): Unresolved reference: setTitle
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\EmbedHelper.kt: (59, 17): None of the following functions can be called with the arguments supplied:
public final fun createEmbed(p0: ((LegacyEmbedCreateSpec!) -> Unit)!): Mono<Message!>! defined in discord4j.core.object.entity.channel.MessageChannel
public open fun createEmbed(p0: EmbedCreateSpec!): MessageCreateMono! defined in discord4j.core.object.entity.channel.MessageChannel
public open fun createEmbed(p0: Consumer<in LegacyEmbedCreateSpec!>!): Mono<Message!>! defined in discord4j.core.object.entity.channel.MessageChannel
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (58, 31): None of the following functions can be called with the arguments supplied:
public final fun createMessage(p0: ((LegacyMessageCreateSpec!) -> Unit)!): Mono<Message!>! defined in discord4j.core.object.entity.channel.MessageChannel
public abstract fun createMessage(p0: MessageCreateSpec!): Mono<Message!>! defined in discord4j.core.object.entity.channel.MessageChannel
public abstract fun createMessage(p0: Consumer<in LegacyMessageCreateSpec!>!): Mono<Message!>! defined in discord4j.core.object.entity.channel.MessageChannel
public open fun createMessage(vararg p0: EmbedCreateSpec!): MessageCreateMono! defined in discord4j.core.object.entity.channel.MessageChannel
public open fun createMessage(p0: String!): MessageCreateMono! defined in discord4j.core.object.entity.channel.MessageChannel
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (116, 66): Type mismatch: inferred type is LegacyMessageEditSpec! but MessageEditSpec was expected
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (169, 30): Unresolved reference: setEmbed
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (169, 50): Unresolved reference: it
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (170, 36): Unresolved reference: setEmbed
e: D:\GIT\DiscordRoleKicker\src\main\kotlin\io\github\thenumberone\discord\rolekickerbot\util\InteractiveMessage.kt: (170, 59): Unresolved reference: it

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileKotlin'.

@Djones4822
Copy link

Djones4822 commented Jun 11, 2023

I believe this is due to the changes introduced in discord4j 3.2.x - if you use 3.1 still it compiles fine.

implementation("com.discord4j:discord4j-core:3.1.0")

I believe the 3.1 snapshot repository was removed, using that dependency seems to work for now.

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

No branches or pull requests

2 participants